058fd0f48cc1fd8f3647554a9e55d59bb0386b86
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2011-09-22 Yao Qi <yao@codesourcery.com>
2
3 * infrun.c (context_switch): Print debug message when switching to
4 a different thread.
5
6 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
7
8 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
9 complex and vector types.
10 (s390_return_value_convention): Likewise.
11
12 (s390_value_from_register): Call check_typedef.
13 (extend_simple_arg): Likewise.
14 (alignment_of): Likewise.
15 (s390_push_dummy_call): Likewise.
16 (s390_return_value): Likewise.
17
18 2011-09-21 Joseph Myers <joseph@codesourcery.com>
19
20 * event-top.c (async_disconnect): If an exception is thrown from
21 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
22 catch_errors.
23 * top.c (quit_cover): Return void and take no arguments.
24 * top.h (quit_cover): Update prototype.
25
26 2011-09-20 Joseph Myers <joseph@codesourcery.com>
27
28 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
29 current_uiout, not uiout.
30
31 2011-09-19 Doug Evans <dje@google.com>
32
33 * python/py-auto-load.c (source_section_scripts): Fix file
34 descriptor leak.
35 * python/python.c (source_python_script_for_objfile): Tweak comments.
36
37 2011-09-18 Yao Qi <yao@codesourcery.com>
38 Ulrich Weigand <ulrich.weigand@linaro.org>
39
40 Support displaced stepping for Thumb 16-bit insns.
41 * arm-tdep.c (THUMB_NOP) Define.
42 (thumb_copy_unmodified_16bit): New.
43 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
44 (thumb_copy_alu_reg): New.
45 (arm_copy_svc): Move some common code to ...
46 (install_svc): ... here. New.
47 (thumb_copy_svc): New.
48 (install_pc_relative): New.
49 (thumb_copy_pc_relative_16bit): New.
50 (thumb_decode_pc_relative_16bit): New.
51 (thumb_copy_16bit_ldr_literal): New.
52 (thumb_copy_cbnz_cbz): New.
53 (cleanup_pop_pc_16bit_all): New.
54 (thumb_copy_pop_pc_16bit): New.
55 (thumb_process_displaced_16bit_insn): New.
56 (thumb_process_displaced_32bit_insn): New.
57 (thumb_process_displaced_insn): process thumb instruction.
58
59 Support displaced stepping for Thumb 32-bit insns.
60 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
61 (thumb2_copy_preload): New.
62 (thumb2_copy_copro_load_store): New.
63 (thumb2_copy_b_bl_blx): New.
64 (thumb2_copy_alu_imm): New.
65 (thumb2_copy_load_reg_imm): New.
66 (thumb2_copy_load_literal): New
67 (thumb2_copy_block_xfer): New.
68 (thumb_32bit_copy_undef): New.
69 (thumb_32bit_copy_unpred): New.
70 (thumb2_decode_ext_reg_ld_st): New.
71 (thumb2_decode_svc_copro): New.
72 (decode_thumb_32bit_store_single_data_item): New.
73 (thumb_copy_pc_relative_32bit): New.
74 (thumb_decode_pc_relative_32bit): New.
75 (decode_thumb_32bit_ld_mem_hints): New.
76 (thumb2_copy_table_branch): New
77 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
78 instructions.
79
80 2011-09-18 Yao Qi <yao@codesourcery.com>
81
82 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
83 (install_b_bl_blx): Likewise.
84
85 2011-09-17 Yao Qi <yao@codesourcery.com>
86
87 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
88 (install_load_store): ... this. New.
89 Change parameter BYTE to SIZE.
90 (arm_copy_ldr_str_ldrb_strb): Update caller.
91 (arm_decode_ld_st_word_ubyte): Update caller.
92
93 2011-09-17 Yao Qi <yao@codesourcery.com>
94
95 * infrun.c (displaced_step_fixup): Move some code ...
96 (displaced_step_restore): ... here. New function.
97 (handle_inferior_event): Cleanup displaced stepping state for both
98 child and parent when get forked or vforked event.
99 * regcache.c (get_thread_arch_aspace_regcache): New function.
100 get_thread_arch_regcache (): Call it.
101
102 2011-09-16 Joel Brobecker <brobecker@adacore.com>
103
104 * ada-tasks.c (print_ada_task_info): New function, merging
105 short_task_info and info_tasks together. Reimplement using
106 ui-out instead of printing to stdout directly. Move the code
107 building and checking the task list here, instead of leaving it
108 in info_tasks_command.
109 (info_task): Move the code building and checking the task
110 list here, instead of leaving it in info_tasks_command.
111 (info_tasks_command): Delete code building and checking
112 the task list - moved elsewhere. Update calls to info_tasks
113 and info_task.
114
115 2011-09-16 Joel Brobecker <brobecker@adacore.com>
116
117 * ada-tasks.c (info_task): Delete parameter `from_tty'.
118
119 2011-09-16 Joel Brobecker <brobecker@adacore.com>
120
121 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
122
123 2011-09-16 Joel Brobecker <brobecker@adacore.com>
124
125 * ada-lang.h (ada_build_task_list): Remove parameter
126 `warn_if_null'.
127 * ada-tasks.c (ada_build_task_list): Remove parameter
128 `warn_if_null'. Adjust implementation and documentation.
129 (valid_task_id, ada_get_environment_task)
130 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
131 (info_tasks_command): Adjust implementation.
132 (task_command): Likewise.
133 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
134 to ada_build_task_list.
135
136 2011-09-16 Joel Brobecker <brobecker@adacore.com>
137
138 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
139 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
140 (ada_tasks_inferior_data_handle): New static global.
141 (get_ada_tasks_inferior_data): New function.
142 (ada_get_task_number, get_task_number_from_id, valid_task_id)
143 (ada_get_environment_task, iterate_over_live_ada_tasks)
144 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
145 Adjust.
146 (ada_set_current_inferior_known_tasks_addr): New function.
147 (read_known_tasks, ada_build_task_list, short_task_info)
148 (info_tasks, info_task, info_tasks_command, task_command_1)
149 (task_command, ada_task_list_changed): Adjust.
150 (ada_tasks_invalidate_inferior_data): New function.
151 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
152 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
153 * ada-lang.h (struct inferior): Add declaration.
154 (ada_task_list_changed): Update profile.
155 * remote-wtx-pd.c: #include "inferior.h".
156 (switch_to_pd_internal): Update call to ada_task_list_changed.
157
158 2011-09-16 Joel Brobecker <brobecker@adacore.com>
159
160 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
161 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
162 (atcb_fieldno): Delete these static globals.
163 (struct ada_tasks_pspace_data): New struct.
164 (ada_tasks_pspace_data_handle): New static global.
165 (get_ada_tasks_pspace_data): New function.
166 (ada_tasks_invalidate_pspace_data): New function.
167 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
168 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
169 (_initialize_tasks): Create this module's per-progspace
170 data handle.
171
172 2011-09-16 Joel Brobecker <brobecker@adacore.com>
173
174 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
175
176 2011-09-16 Tristan Gingold <gingold@adacore.com>
177
178 * fork-child.c (fork_inferior): Update comment. Use alloca
179 instead of xmalloc for argv. Move len and shell_command
180 declarations in the block where they are used.
181 Only call execvp. Factorize failure code.
182
183 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
184
185 Code cleanup.
186 * parse.c (write_exp_elt): Change argument to pass a pointer of union
187 `exp_element' instead of an element of the same and make the function
188 static.
189 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
190 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
191 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
192 Change argument of `write_exp_elt' function call.
193 Remove extra spaces from comments.
194 * parser-defs.h (write_exp_elt): Remove prototype.
195
196 2011-09-15 Paul Koning <paul_koning@dell.com>
197
198 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
199 count of item appended to list.
200 * python/py-type.c (typy_fields): Likewise.
201
202 2011-09-15 Paul Koning <paul_koning@dell.com>
203
204 * MAINTAINERS (Write After Approval): Add myself to the list.
205
206 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
207
208 PR threads/12628
209 * linux-fork.c (checkpoint_command): Disallow checkpointing of
210 processes with multiple threads.
211 (inf_has_multiple_thread_cb): New function.
212 (inf_has_multiple_threads): New function.
213
214 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
215
216 PR Python/12692 Add gdb.selected_inferior() to Python interface.
217 * python/py-inferior.c (GdbMethods): New Python method definition.
218
219 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
220
221 Handle multiple breakpoint hits in Python interface:
222 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
223 variable to breakpoints.
224 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
225 bps instead of single breakpoint. Fix some space typos.
226 * python/py-stopevent.c (create_breakpoint_event_object): Rename
227 variable to breakpoints.
228
229 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
230
231 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
232 note if the breakpoint is internal.
233
234 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
235
236 * MAINTAINERS (Write After Approval): Add myself to the list
237
238 2011-09-14 Pedro Alves <pedro@codesourcery.com>
239
240 * infrun.c (prepare_for_detach, wait_for_inferior)
241 (fetch_inferior_event): Don't flush the register cache.
242 * remote.c (struct stop_reply) <regcache>: Add comment.
243
244 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
245
246 Remove excessive DWARF expressions memory duplication.
247 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
248 for block.data.
249 (indirect_pieced_value): Remove variable result. Remove variable
250 back_to and its use for baton.data.
251 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
252 block.data.
253 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
254 Update the function comment.
255
256 2011-09-13 Pedro Alves <pedro@codesourcery.com>
257
258 * inferior.h (ALL_INFERIORS): New.
259 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
260 for a stopped thread.
261 (thread_db_find_new_threads): Look for threads in all inferiors.
262
263 2011-09-13 Pedro Alves <pedro@codesourcery.com>
264
265 * breakpoint.c (update_watchpoint): Handle the case of the
266 watchpoint to update not being in the breakpoint list yet.
267 (hw_watchpoint_use_count): New, factored out from
268 hw_watchpoint_used_count.
269 (hw_watchpoint_used_count): Rename to ...
270 (hw_watchpoint_used_count_others): ... this. Add `except'
271 parameter. Don't count resources of `except'. Use
272 hw_watchpoint_use_count.
273
274 2011-09-13 Pedro Alves <pedro@codesourcery.com>
275
276 * gdbthread.h (enum thread_state): Moved here.
277 (struct thread_info): Rename `executing_' field to `executing' and
278 `state_' to `state'.
279 * thread.c (enum thread_state): Moved to gdbthread.h.
280 (new_thread, add_thread_silent, delete_thread_1)
281 (any_live_thread_of_process, thread_alive, set_running)
282 (set_running, is_thread_state, any_running, is_executing)
283 (set_executing, finish_thread_state, print_thread_info)
284 (do_captured_thread_select): Adjust.
285
286 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
287
288 Fix compatibility with gcc < 4.3 and non-gcc compilers.
289 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
290
291 2011-09-12 Pedro Alves <pedro@codesourcery.com>
292 Matt Rice <ratmice@gmail.com>
293
294 PR gdb/13175
295
296 * interps.c (struct interp) <interpreter_out>: Delete field.
297 (interp_new): Remove the data and uiout parameters and adjust.
298 (interp_set): Only set the current_uiout from the interpreter's
299 uiout after initializing the interpreter. Adjust call to
300 init_proc.
301 (interp_ui_out): Adjust to call procs->ui_out_proc.
302 (interp_data, interp_name): New.
303 * interps.h (interp_init_ftype): Add `self' parameter.
304 (interp_ui_out_ftype): New typedef.
305 (struct interp_procs) <ui_out_proc>: New method pointer.
306 (interp_new): Remove the data and uiout parameters.
307 (interp_data, interp_name): Declare.
308 * tui/tui-interp.c (tui_init): Adjust prototype.
309 (tui_ui_out): New.
310 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
311 tui_out here. Adjust call to interp_new.
312 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
313 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
314 (cli_ui_out): New.
315 (_initialize_cli_interp): Install it. Adjust call to interp_new.
316 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
317 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
318 Initialize mi->uiout depending on the mi_version as extracted from
319 the interpreter's name.
320 (mi_ui_out): New.
321 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
322 interp_new. Don't allocate the ui_out's of the interpreters here.
323
324 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
325
326 * solib.c (solib_used): New function.
327 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
328 by another so_list object before freeing it.
329
330 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
331
332 Code cleanup.
333 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
334 values.
335
336 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
337
338 Code cleanup.
339 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
340 (amd64_skip_xmm_prologue): ... this new function. Describe its
341 parameters. No longer use amd64_prologue_line_bug.
342 * defs.h (producer_is_gcc_ge_4): New declaration.
343 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
344 (process_full_comp_unit): Update its caller. Remove
345 amd64_prologue_line_bug initialization.
346 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
347 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
348
349 2011-09-09 Pedro Alves <pedro@codesourcery.com>
350
351 * linux-nat.h (enum resume_kind): New.
352 (struct lwp_info) <last_resume_kind>: New field.
353 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
354 resume_stop on the new lwp.
355 (add_lwp): Set last_resume_kind as resume_continue by default.
356 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
357 (resume_lwp): New, factored out from resume_callback. Also check
358 for pending status in lp->waitstatus.
359 (resume_callback): Reimplement.
360 (resume_clear_callback): Set last_resume_kind as resume_stop.
361 (resume_set_callback): Set last_resume_kind as resume_continue.
362 (linux_nat_resume, linux_handle_extended_wait): Set
363 last_resume_kind.
364 (running_callback): Also check lp->waitstatus for pending events.
365 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
366 is resume_step.
367 (stop_and_resume_callback): Don't re-resume if the core wanted the
368 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
369 using an invalidated pointer.
370 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
371 SIGSTOPs if the core wanted the LWP to stop.
372 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
373 wanted the lwp to stop. If the core wanted the lwp to stop, and
374 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
375 of TARGET_SIGNAL_STOP.
376 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
377 here. Instead, signal the lwp, and set the last_resume_kind to
378 resume_stop.
379
380 2011-09-09 Pedro Alves <pedro@codesourcery.com>
381
382 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
383 -1 (error), if the lwp exits right after attaching.
384
385 2011-09-08 Doug Evans <dje@google.com>
386
387 * py-cmd.c: Some minor formatting fixes.
388 (gdbpy_parse_command_name): Rename text arg to name, make const.
389 All callers updated.
390 * python-internal.h (gdbpy_parse_command_name): Update.
391
392 * cli/cli-decode.c (add_cmd): Add comment.
393
394 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
395
396 PR breakpoints/12435
397 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
398 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
399 * dwarf2read.c (process_full_comp_unit): Initialize
400 amd64_prologue_line_bug.
401 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
402
403 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
404
405 Fix TUI screen corruption.
406 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
407 batch_flag.
408
409 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
410
411 * findvar.c (read_var_value): Never return NULL, throw an error
412 instead. Update the function comment. State symbol name in the error
413 messages.
414 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
415 read_var_value.
416 * stack.c (print_frame_args): Likewise.
417 * valops.c (value_of_variable): Likewise.
418
419 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
420
421 * stack.c (print_frame_args): New variable except. Wrap
422 read_var_value and common_val_print into TRY_CATCH.
423
424 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
425
426 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
427 caller to value_of_this.
428 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
429 Twice.
430 * valops.c (value_of_this): Remove parameter complain and variable ret.
431 Update function comment. Never return NULL by this code.
432 (value_of_this_silent): New function.
433 * value.h (value_of_this): Remove parameter complain.
434 (value_of_this_silent): New declaration.
435
436 2011-09-07 Yao Qi <yao@codesourcery.com>
437
438 * gdbthread.h (struct thread_info): Remove fields
439 `stepping_through_solib_after_catch' and
440 `stepping_through_solib_catchpoints'.
441 * infrun.c (init_thread_stepping_state): Update.
442 (process_event_stop_test, currently_stepping): Update.
443 (currently_stepping_or_nexting_callback): Update.
444
445 2011-09-07 Yao Qi <yao@codesourcery.com>
446
447 * gdbthread.h (struct thread_info): Comment on field
448 `step_after_step_resume_breakpoint'.
449
450 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
451
452 * remote.c (remote_console_output): Reindent.
453
454 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
455
456 * frame.c (has_stack_frames): Check for currently selected
457 traceframe.
458
459 2011-09-06 Pedro Alves <pedro@codesourcery.com>
460
461 * event-top.h (MAXPROMPTS, struct prompts): Delete.
462 (set_async_annotation_level, set_async_prompt, pop_prompt)
463 (push_prompt, new_async_prompt): Delete declarations.
464 * top.h (get_prompt, set_prompt): Change prototype.
465 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
466 declarations.
467 * top.c (command_loop):
468 (top_prompt): New global.
469 (get_prefix, set_prefix, get_suffix, ): Delete.
470 (get_prompt, set_prompt): Rewrite.
471 (show_new_async_prompt): Rename to ...
472 (show_prompt): ... this.
473 (init_main): Adjust. Don't handle --annotate=2 here.
474 * event-top.c (new_async_prompt): Delete.
475 (the_prompts): Delete.
476 (more_to_come): Make static.
477 (display_gdb_prompt): Use top_level_prompt() to compute the top
478 level prompt, and don't notify the before_prompt observers
479 directly here. Always trick readline into not trying to display
480 the prompt if sync_execution and displaying the primary prompt.
481 If displaying a local/secondary prompt, always show it, even if
482 sync_execution is set.
483 (change_annotation_level): Delete.
484 (top_level_prompt): New, based on change_annotation_level.
485 (push_prompt, pop_prompt): Delete.
486 (async_disable_stdin): No longer pushes prompt.
487 (command_line_handler): No longer pushes or pops prompt. If more
488 input is expected, call display_gdb_prompt with an explicit empty
489 prompt.
490 (async_stop_sig): Adjust.
491 (set_async_annotation_level, set_async_prompt): Delete.
492 * python/python.c (before_prompt_hook): Adjust.
493
494 2011-09-05 Pedro Alves <pedro@codesourcery.com>
495
496 PR cli/13110
497
498 * infrun.c (fetch_inferior_event): Check if there's a selected
499 thread before checking if the selected thread is executing.
500
501 2011-09-05 Pedro Alves <pedro@codesourcery.com>
502
503 * inf-loop.c (execute_command): Don't check if the current thread
504 if running before synchronously waiting for command completion.
505 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
506 here.
507 (normal_stop): Call async_enable_stdin here.
508 * inf-loop.c (inferior_event_handler): Don't call
509 async_enable_stdin, nor handle "set exec-done-display" here.
510
511 2011-09-04 Joel Brobecker <brobecker@adacore.com>
512
513 GDB 7.3.1 released.
514
515 2011-09-04 Joel Brobecker <brobecker@adacore.com>
516
517 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
518
519 2011-09-04 Joel Brobecker <brobecker@adacore.com>
520
521 * NEWS: Add entry for OpenBSD/NetBSD build failure.
522
523 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
524
525 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
526
527 2011-09-02 Matt Rice <ratmice@gmail.com>
528
529 PR gdb/10720
530 * event-top.c (cli_command_loop): Replace readline setup with
531 direct call to display_gdb_prompt.
532 (display_gdb_prompt): Do not call observer mechanism during
533 synchronous execution.
534
535 2011-09-02 Pedro Alves <pedro@codesourcery.com>
536
537 * linux-nat.c (in_pid_list_p): New.
538 (linux_record_stopped_pid): Delete.
539 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
540 already attached to the LWP. Return an indication if so.
541 (linux_nat_filter_event): Adjust.
542 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
543 returning an indication to ignore this thread.
544
545 2011-09-02 Pedro Alves <pedro@codesourcery.com>
546
547 * top.c: Include interps.h.
548 (execute_command): If the target can async, but the interpreter is
549 in sync mode, synchronously wait for the command to finish before
550 returning.
551 (execute_command_to_string): Force the interpreter to sync mode.
552 * infrun.c: Include interps.h.
553 (fetch_inferior_event): Don't restore the prompt yet if the
554 interpreter is in sync mode.
555 * interps.c (interpreter_async): New global.
556 * interps.h (interpreter_async): Declare.
557 * inf-loop.c: Include interps.h.
558 (inferior_event_handler): Don't print the language change or run
559 breakpoint commands yet if the interpreter in is sync mode.
560 * main.c (captured_command_loop): Flip the interpreter to async
561 mode.
562 * cli/cli-script.c: Include interps.h.
563 (execute_user_command, while_command, if_command): Force the
564 interpreter to sync mode.
565 * python/python.c: Include interps.h.
566 (python_command, execute_gdb_command): Force the interpreter to
567 sync mode.
568
569 2011-09-02 Pedro Alves <pedro@codesourcery.com>
570
571 * value.c (show_convenience): Catch errors thrown while printing
572 each internal variable.
573 * infrun.c (validate_siginfo_access): New function.
574 (siginfo_value_read, siginfo_value_write): Call it.
575
576 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
577
578 Revert:
579 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
580 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
581 attribute.
582
583 2011-08-29 Yao Qi <yao@codesourcery.com>
584
585 * solib-dsbt.c (bfd_lookup_symbol): Removed.
586 (cmp_name): New.
587 (enable_break2): Update caller.
588 * solib-frv.c (bfd_lookup_symbol): Removed.
589 (cmp_name): New.
590 (enable_break2): Update caller.
591 * solib-pa64.c (bfd_lookup_symbol): Removed.
592 (cmp_name): New.
593 * solib-svr4.c (bfd_lookup_symbol): Removed.
594 (cmp_name_and_sec_flags): New.
595 (enable_break): Update caller.
596 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
597 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
598 (gdb_bfd_lookup_symbol): New.
599 * solib.h: Functions declarations.
600
601 2011-08-29 Yao Qi <yao@codesourcery.com>
602
603 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
604 and solib-dsbt.o.
605
606 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
607
608 Fix TUI stepi on code without symbols.
609 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
610 current PC instead.
611
612 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
613
614 Code cleanup.
615 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
616 and the static keyword.
617 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
618 Make prefix an array.
619 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
620 * mi/mi-main.c (get_register): Remove stb initialization and the static
621 keyword.
622
623 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
624
625 Code cleanup - make mi_opt const.
626 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
627 opts const.
628 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
629 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
630 (mi_cmd_env_dir): Likewise.
631 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
632 (mi_cmd_target_file_put): Likewise.
633 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
634 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
635 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
636 (mi_valid_noargs): Make opts const.
637 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
638 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
639 (mi_cmd_data_read_memory): Likewise.
640 (mi_cmd_data_read_memory_bytes): Likewise.
641 (mi_cmd_data_write_memory): Likewise.
642
643 2011-08-26 Matt Rice <ratmice@gmail.com>
644
645 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
646 bcache_xmalloc, replace bcache_xmalloc with call to
647 psymbol_bcache_init for psymbol_cache.
648 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
649
650 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
651
652 * inf-loop.c (inferior_event_handler): Add exception_print in
653 INF_EXEC_COMPLETE.
654
655 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
656
657 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
658 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
659 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
660 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
661 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
662 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
663 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
664 * infrun.c (fetch_inferior_event): Call
665 make_bpstat_clear_actions_cleanup.
666 * top.c (execute_command): New variable cleanup_if_error, call
667 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
668 * utils.c (do_bpstat_clear_actions_cleanup)
669 (make_bpstat_clear_actions_cleanup): New functions.
670
671 2011-08-26 Pedro Alves <pedro@codesourcery.com>
672
673 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
674 either the parent or the child forks. Rename a couple locals.
675
676 2011-08-26 Pedro Alves <pedro@codesourcery.com>
677
678 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
679 library call. Avoid reading the `status' local if all waitpid
680 calls failed.
681
682 2011-08-26 Pedro Alves <pedro@codesourcery.com>
683
684 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
685 opening /proc/PID/task always succeeds.
686
687 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
688
689 * linespec.c (symtab_from_filename): Check for the end of string.
690
691 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
692
693 PR mi/11912
694 * varobj.c (cplus_describe_child): Add the keyword
695 'class' to the output of the method when dealing
696 with a cast to a base class.
697
698 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
699
700 No functionality change.
701 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
702 function comment a reference, new variables tp and bs, move here code
703 from throw_exception.
704 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
705 describe it in the comment.
706 * exceptions.c (throw_exception): Remove variable tp, move the code for
707 bpstat_clear_actions to bpstat_clear_actions.
708
709 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
710
711 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
712 * linux-nat.c: Include linux-procfs.h.
713 (linux_proc_get_tgid): Move to ...
714 * common/linux-procfs.c: ... here. New file.
715 * common/linux-procfs.h: New file.
716 * linux-thread-db.c: Include linux-procfs.h.
717 * Makefile.in: Update dependencies.
718 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
719 * config/arm/linux.mh: Likewise.
720 * config/i386/linux.mh: Likewise.
721 * config/i386/linux64.mh: Likewise.
722 * config/ia64/linux.mh: Likewise.
723 * config/m32r/linux.mh: Likewise.
724 * config/m68k/linux.mh: Likewise.
725 * config/mips/linux.mh: Likewise.
726 * config/pa/linux.mh: Likewise.
727 * config/pa/linux.mh: Likewise.
728 * config/powerpc/linux.mh: Likewise.
729 * config/powerpc/ppc64-linux.mh: Likewise.
730 * config/powerpc/spu-linux.mh: Likewise.
731 * config/sparc/linux.mh: Likewise.
732 * config/sparc/linux64.mh: Likewise.
733 * config/xtensa/linux.mh: Likewise.
734
735 2011-08-24 Hui Zhu <teawater@gmail.com>
736
737 * tracepoint.c (cond_string_is_same): New function.
738 (find_matching_tracepoint): Add condition check
739 by cond_string_is_same.
740
741 2011-08-23 Josh Matthews <josh@joshmatthews.net>
742
743 Fix build error in Darwin port.
744 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
745
746 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
747
748 Code cleanup.
749 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
750 (command_line_is_silent): New function.
751 (bpstat_do_actions_1): No longer use commands_left, use
752 command_line_is_silent for commands.
753 (bpstat_alloc): Remove clearing of commands_left.
754 (bpstat_stop_status): Remove initialization of commands_left, use
755 command_line_is_silent.
756 * breakpoint.h (struct bpstats): Remove commands_left.
757
758 2011-08-18 Keith Seitz <keiths@redhat.com>
759
760 PR c++/12266
761 * cp-name-parser.y (struct demangle_info): Remove unused
762 member PREV.
763 (d_grab): Likewise.
764 (allocate_info): Change return type to struct demangle_info *.
765 Always allocate a new demangle_info.
766 Remove unused PREV pointer.
767 (cp_new_demangle_parse_info): New function.
768 (cp_demangled_name_parse_free): New function.
769 (do_demangled_name_parse_free_cleanup): New function.
770 (make_cleanup_cp_demangled_name_parse_free): New function.
771 (cp_demangled_name_to_comp): Change return type to
772 struct demangle_parse_info *.
773 Allocate a new storage for each call.
774 (main): Update usage for cp_demangled_name_to_comp
775 API change.
776 * cp-support.h (struct demangle_parse_info): New structure.
777 (cp_demangled_name_to_comp): Update API change for
778 return type.
779 (cp_new_demangle_parse_info): Declare.
780 (make_cleanup_cp_demangled_name_parse_free): New declaration.
781 (cp_demangled_name_parse_free): Declare.
782 * cp-support.c (cp_canonicalize_string): Update API
783 change for cp_demangled_name_to_comp.
784 (mangled_name_to_comp): Likewise.
785 Return struct demangle_parse_info, too.
786 (cp_class_name_from_physname): Update mangled_name_to_comp
787 API change.
788 (method_name_from_physname): Likewise.
789 (cp_func_name): Update API change for cp_demangled_name_to_comp.
790 (cp_remove_params): Likewise.
791 * python/py-type.c (typy_legacy_template_argument): Likewise.
792
793 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
794 (cp_merge_demangle_parse_infos): Declare.
795 * cp-support.c (ignore_typedefs): New file global.
796 (copy_string_to_obstack): New function.
797 (inspect_type): New function.
798 (replace_typedefs): New function.
799 (replace_typedefs_qualified_name): New function.
800 (cp_canonicalize_string_no_typedefs): New function.
801 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
802 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
803 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
804 instead of cp_canonicalize_string.
805 (find_method): Likewise.
806 (decode_compound): Before looking up the name, call
807 cp_canonicalize_string_no_typedefs.
808 (decode_variable): Likewise.
809
810 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
811 Tom Tromey <tromey@redhat.com>
812 Matt Rice <ratmice@gmail.com>
813
814 * python/lib/gdb/prompt.py: New file.
815 * python/lib/gdb/command/prompt.py: New file.
816 * NEWS: Document set extended-prompt and gdb.prompt library
817
818 2011-08-16 Yao Qi <yao@codesourcery.com>
819
820 * tic6x-linux-tdep.c: Move const arrays definition from here...
821 * tic6x-tdep.c: to here ...
822
823 2011-08-14 Yao Qi <yao@codesourcery.com>
824
825 * NEWS: New port to Texas Instruments TMS320C6x.
826
827 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
828 Bernd Schmidt <bernds@codesourcery.com>
829 Yao Qi <yao@codesourcery.com>
830
831 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
832 * solib-dsbt.c: New file. Support DSBT shared object.
833 * tic6x-linux-tdep.c: New file.
834 * tic6x-tdep.c: New file.
835 * tic6x-tdep.h: New file.
836
837 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
838 Yao Qi <yao@codesourcery.com>
839
840 * remote.c (PACKET_qXfer_fdpic): New enum value.
841 (remote_protocol_features): Add qXfer:fdpic:read packet.
842 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
843 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
844 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
845
846 2011-08-14 Yao Qi <yao@codesourcery.com>
847
848 Target description for tic6x.
849 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
850 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
851 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
852 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
853 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
854 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
855 * features/tic6x-c64xp-linux.xml: New.
856 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
857 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
858 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
859 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
860 * regformats/tic6x-c64xp.dat,
861 regformats/tic6x-c62x-linux.dat: Generated.
862 * regformats/tic6x-c64x-linux.dat,
863 regformats/tic6x-c64xp-linux.dat: Generated.
864 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
865 features/tic6x-*.c files.
866 Add regformats/tic6x-*.dat files.
867
868 2011-08-12 Doug Evans <dje@google.com>
869
870 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
871 * python/py-symbol.c (sympy_get_type): New function.
872 (symbol_object_getset): Add "type".
873
874 2011-08-12 Pedro Alves <pedro@codesourcery.com>
875
876 PR tui/13073
877
878 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
879 empty name.
880 (tui_show_register_group): Don't store a byte buffer in the data
881 element's value.
882 (tui_register_format): Skip registers with an empty name.
883 (tui_get_register): Store a struct value in the data element's
884 value field instead of a byte buffer holding the raw register
885 contents. Account for optimized-out and unavailable registers
886 when comparing register contents.
887
888 2011-08-09 Pedro Alves <pedro@codesourcery.com>
889
890 * printcmd.c (current_display_number): Update comment.
891 (disable_current_display_cleanup): Delete.
892 (do_one_display): Use make_cleanup_restore_integer. Gracefully
893 catch errors thrown while evaluating and printing the display.
894
895 2011-08-09 Tom Tromey <tromey@redhat.com>
896
897 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
898
899 2011-08-09 Pedro Alves <pedro@codesourcery.com>
900
901 * elfread.c (elf_symtab_read): Rework comments.
902 * maint.c (maintenance_command): Ditto.
903 * somread.c (som_symtab_read): Ditto.
904 * solib.c (solib_find, solib_map_sections, update_solib_list)
905 (solib_add, info_sharedlibrary_command, solib_name_from_address)
906 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
907 (sharedlibrary_command, no_shared_libraries): Ditto.
908 * solib-irix.c (locate_base, disable_break, enable_break)
909 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
910 (irix_current_sos, irix_open_symbol_file_object)
911 (irix_special_symbol_handling): Ditto.
912 * solib-sunos.c (locate_base, first_link_map_member)
913 (sunos_current_sos, disable_break, enable_break)
914 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
915 Ditto.
916 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
917 (open_symbol_file_object, svr4_current_sos, enable_break)
918 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
919 Ditto.
920 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
921 (frv_current_sos, enable_break, frv_special_symbol_handling)
922 (frv_solib_create_inferior_hook): Ditto.
923 * solist.h (struct target_so_ops): Extend the comments of the
924 special_symbol_handling, current_sos and open_symbol_file_object
925 methods.
926
927 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
928
929 * python/lib/gdb/__init__.py: Auto-load files in command and
930 function directories.
931 * python/python.c (finish_python_initialization): Use
932 os.path.join.
933 * python/lib/gdb/command/pretty_printers.py: Self register
934 command.
935 * NEWS: Document auto-loading.
936
937 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
938
939 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
940 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
941 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
942
943 2011-08-08 Tom Tromey <tromey@redhat.com>
944
945 * breakpoint.c (clean_up_filters): Remove.
946 (catch_syscall_split_args): Use VEC_cleanup.
947
948 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
949
950 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
951 (main): Uncomment "Demangling error\n".
952
953 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
954
955 * solib-target.c (segment_attributes): Make them static.
956 (section_attributes, library_children, library_attributes): Likewise.
957 (library_list_children, library_list_attributes): Likesise.
958 (library_list_elements): Likewise.
959
960 2011-08-05 Pedro Alves <pedro@codesourcery.com>
961
962 * exceptions.c (throw_exception): Don't disable the current
963 display.
964 * printcmd.c (disable_current_display_cleanup): New function.
965 (do_one_display): Install a cleanup to disable the current display
966 if doing the display throws.
967
968 2011-08-05 Eli Zaretskii <eliz@gnu.org>
969
970 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
971 initialization of the tp_new member to the corresponding
972 gdbpy_initialize_* function.
973 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
974 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
975 * python/py-function.c (gdbpy_initialize_functions): Likewise.
976 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
977 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
978
979 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
980
981 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
982 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
983 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
984 references to current_uiout.
985
986 2011-08-04 Pedro Alves <pedro@codesourcery.com>
987
988 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
989 (start_event_loop): Use TRY_CATCH instead of catch_errors.
990 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
991 * top.c (gdb_readline_wrapper): Adjust.
992 * tui/tui-interp.c (tui_command_loop):
993 (_initialize_tui_interp): Don't install it.
994
995 2011-08-04 Pedro Alves <pedro@codesourcery.com>
996
997 * ui-out.h (uiout): Rename to ...
998 (current_uiout): ... this.
999 * ui-out.c (uiout): Rename to ...
1000 (current_uiout): ... this.
1001 * ada-lang.c (print_it_exception, print_one_exception)
1002 (print_mention_exception): Adjust.
1003 * breakpoint.c (watchpoint_check): Adjust.
1004 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
1005 (default_collect_info, watchpoints_info, print_one_catch_fork)
1006 (print_one_catch_vfork, print_one_catch_syscall)
1007 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
1008 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
1009 (print_it_watchpoint, print_mention_watchpoint)
1010 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
1011 (print_it_exception_catchpoint, print_one_exception_catchpoint)
1012 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
1013 (bkpt_print_mention, momentary_bkpt_print_it)
1014 (tracepoint_print_mention, update_static_tracepoint)
1015 (tracepoints_info, save_breakpoints): Adjust.
1016 * cli-out.c (field_separator): Adjust.
1017 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
1018 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
1019 * frame.c (get_current_frame): Adjust.
1020 * infcmd.c (run_command_1, print_return_value): Adjust.
1021 * inferior.c (inferior_command, info_inferiors_command): Adjust.
1022 * infrun.c (print_end_stepping_range_reason): Adjust.
1023 (print_signal_exited_reason, print_exited_reason): Adjust.
1024 (print_signal_received_reason, print_no_history_reason): Adjust.
1025 * interps.c (interp_set): Adjust.
1026 * osdata.c (info_osdata_command): Adjust.
1027 * progspace.c (maintenance_info_program_spaces_command): Adjust.
1028 * remote-fileio.c (remote_fileio_request): Adjust.
1029 * remote.c (show_remote_cmd): Adjust.
1030 * solib.c (info_sharedlibrary_command): Adjust.
1031 * source.c (print_source_lines_base): Adjust.
1032 * stack.c (print_stack_frame): Adjust.
1033 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
1034 * symfile-mem.c (add_vsyscall_page): Adjust.
1035 * symfile.c (load_progress, generic_load)
1036 (print_transfer_performance): Adjust.
1037 * thread.c (info_threads_command, restore_selected_frame)
1038 (thread_command): Adjust.
1039 * top.c (make_cleanup_restore_ui_file): Adjust.
1040 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
1041 (print_one_static_tracepoint_marker): Adjust.
1042 * cli/cli-cmds.c (print_disassembly): Adjust.
1043 * cli/cli-decode.c (print_doc_line): Adjust.
1044 * cli/cli-interp.c (safe_execute_command): Adjust.
1045 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
1046 (handle_redirections): Adjust.
1047 * cli/cli-script.c (show_user_1): Adjust.
1048 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
1049 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1050 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
1051 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
1052 (mi_cmd_env_dir): Adjust.
1053 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
1054 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
1055 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1056 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
1057 (list_args_or_locals): Adjust.
1058 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1059 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
1060 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
1061 (mi_cmd_var_list_children, mi_cmd_var_info_type)
1062 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
1063 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
1064 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
1065 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
1066 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
1067 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
1068 (list_available_thread_groups, mi_cmd_list_thread_groups)
1069 (mi_cmd_data_list_register_names)
1070 (mi_cmd_data_list_changed_registers)
1071 (mi_cmd_data_list_register_values, get_register)
1072 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
1073 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
1074 (mi_cmd_list_target_features, mi_cmd_add_inferior)
1075 (mi_execute_command, mi_load_progress): Adjust.
1076 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
1077 * python/py-auto-load.c (print_script, info_auto_load_scripts):
1078 Adjust.
1079 * python/py-breakpoint.c (bppy_get_commands): Adjust.
1080 * tui/tui-interp.c (tui_command_loop): Adjust.
1081 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
1082
1083 2011-08-04 Pedro Alves <pedro@codesourcery.com>
1084
1085 * exceptions.c (struct catcher): Remove saved_uiout field.
1086 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
1087 no longer save/resvore the global ui_out builder.
1088 (catch_exceptions_with_msg): Save/override/restore the global
1089 ui_out builder manually instead of relying on TRY_CATCH to do it.
1090 (catch_errors): Save/restore the global ui_out builder manually
1091 instead of relying on TRY_CATCH to do it.
1092 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
1093 parameter.
1094 (TRY_CATCH): Adjust.
1095 * cli/cli-interp.c (safe_execute_command): Save/override/restore
1096 the global ui_out builder manually instead of relying on TRY_CATCH
1097 to do it.
1098
1099 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1100
1101 * breakpoint.c (update_global_location_list): Ensure
1102 invariant 'first loc marked not duplicated and inserted,
1103 following locs marked duplicated/not inserted' is respected
1104 for multiple locations at the same address.
1105 (unduplicated_should_be_inserted) New function.
1106 (swap_insertion) New function.
1107
1108 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1109
1110 * stack.c (print_frame_arguments_choices): Comment typo fix.
1111
1112 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
1113
1114 Revert:
1115 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1116 * breakpoint.c (insert_bp_location): Remove disabled_breaks
1117 argument. Update callers.
1118
1119 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
1120
1121 PR gdb/13045
1122 * doublest.c (convert_doublest_to_floatformat): Pass correct
1123 mantissa length to put_field.
1124
1125 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1126
1127 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
1128 exception_print code path.
1129 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
1130 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
1131 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
1132
1133 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1134
1135 Code cleanup.
1136 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
1137 Remove, merge them into ...
1138 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
1139 variable args and its initialization.
1140 (struct print_args_args, print_args_stub): Remove, merge them into
1141 print_frame.
1142 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
1143 them into ...
1144 (do_gdb_disassembly): ... here. Remove variable args and its
1145 initialization.
1146 (print_frame): Remove variable args and its initialization, new
1147 variable gdbarch and numargs (from print_args_stub), inline here
1148 print_args_stub with a TRY_CATCH.
1149 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
1150 them into ...
1151 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
1152 New variable e, remove variable btargs and its initialization.
1153
1154 2011-08-01 Tristan Gingold <gingold@adacore.com>
1155
1156 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
1157
1158 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1159
1160 * breakpoint.c (insert_bp_location): Document return value.
1161 (insert_breakpoint_locations): Fix documentation.
1162 (remove_breakpoints): Add documentation.
1163
1164 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1165
1166 * breakpoint.c (insert_bp_location): Remove disabled_breaks
1167 argument. Update callers.
1168
1169 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1170
1171 * stack.c (print_frame_info): Comment typo fix.
1172
1173 2011-07-29 Sterling Augustine <saugustine@google.com>
1174
1175 * MAINTAINERS (Write After Approval): Add myself to the list.
1176
1177 2011-07-29 Tom Tromey <tromey@redhat.com>
1178
1179 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
1180 (library_list_start_segment): Update.
1181 (library_list_start_section): Update.
1182
1183 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
1184
1185 * varobj.c (value_get_print_value): Move hint check later into the
1186 function. Comment function. Free thevalue before reusing it.
1187
1188 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1189 Pedro Alves <pedro@codesourcery.com>
1190
1191 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
1192 value_one.
1193 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
1194 Assert the result kind.
1195 * value.h (value_one): Remove parameter lv.
1196
1197 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1198
1199 Fix crash on lval_computed values.
1200 * valops.c (value_zero): Use not_lval for lval_computed.
1201
1202 2011-07-27 Tom Tromey <tromey@redhat.com>
1203
1204 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
1205 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
1206
1207 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1208
1209 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
1210 "ptype" by their typedefs difference.
1211
1212 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1213
1214 * dwarf2expr.c (ctx_no_read_reg): New function.
1215 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1216 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1217 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1218 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1219
1220 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1221
1222 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
1223 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
1224 file.
1225 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
1226 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1227 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1228 (ctx_no_get_base_type): Move the functions here.
1229 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1230 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1231 (ctx_no_get_base_type): New declarations.
1232
1233 2011-07-27 Tom Tromey <tromey@redhat.com>
1234
1235 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
1236 entries.
1237 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
1238 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
1239
1240 2011-07-26 Sterling Augustine <saugustine@google.com>
1241
1242 * cli/cli-dump.c (dump_binary_file): Change parameter type to
1243 ULONGEST.
1244 (dump_bfd_file): Likewise.
1245
1246 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1247
1248 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
1249 (remote_hw_watchpoint_length_limit): New variable.
1250 (_initialize_remote) add set,show cmds for this new variable.
1251 * gdb.texinfo: document these new commands.
1252 * NEWS: Mention these new commands.
1253
1254 2011-07-26 Pedro Alves <pedro@codesourcery.com>
1255
1256 * breakpoint.c (works_in_software_mode_watchpoint): Also return
1257 true for software watchpoints.
1258
1259 2011-07-26 Joel Brobecker <brobecker@adacore.com>
1260
1261 GDB 7.3 released.
1262
1263 2011-07-26 Tom Tromey <tromey@redhat.com>
1264
1265 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
1266 * dwarf2read.c (read_indirect_string_at_offset): New function.
1267 (read_indirect_string): Use it.
1268 (dwarf_decode_macro_bytes): New function, taken from
1269 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
1270 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
1271 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
1272 New functions.
1273 (struct dwarf2_per_objfile) <macro>: New field.
1274 (dwarf2_elf_names): Add .debug_macro.
1275 (dwarf2_macros_too_long_complaint): Add 'section' argument.
1276 (dwarf2_locate_sections): Handle new section.
1277 (read_file_scope): Handle DW_AT_GNU_macros.
1278 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
1279
1280 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1281
1282 * NEWS: Mention dcache configuration.
1283 * dcache.c (dcache_set_list, dcache_show_list): New variables.
1284 (dcache_size, dcache_line_size): New variables.
1285 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
1286 (struct dcache_block): Make it expandable.
1287 (struct dcache_struct): New field.
1288 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
1289 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
1290 (dcache_poke_byte, dcache_print_line): Adjust.
1291 (set_dcache_size, set_dcache_line_size): New functions.
1292 (set_dcache_command, show_dcache_command): New functions.
1293 (_initialize_dcache): Add new commands.
1294
1295 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1296
1297 * progspace.h (struct program_space): Add solib_add_generation.
1298 * infcmd.c (post_create_inferior): Only call solib_add if not
1299 already done.
1300 * solib.c (solib_add): Increment solib_add_generation.
1301
1302 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1303
1304 Fix implicit pointer offsets.
1305 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
1306 ptr.OFFSET.
1307
1308 2011-07-25 Tom Tromey <tromey@redhat.com>
1309
1310 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
1311 const.
1312 (ada_exception_sal): Make 'ops' const.
1313 (ada_decode_exception_location): Likewise.
1314 (ada_decode_assert_location): Likewise.
1315 (catch_assert_command): Update.
1316 (catch_ada_exception_command): Update.
1317 (create_ada_exception_catchpoint): Make 'ops' const.
1318 * breakpoint.c (set_raw_breakpoint_without_location)
1319 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
1320 const.
1321 (create_internal_breakpoint): Update.
1322 (init_raw_breakpoint_without_location): Make 'ops' const.
1323 (init_raw_breakpoint, init_catchpoint)
1324 (create_fork_vfork_event_catchpoint)
1325 (create_syscall_event_catchpoint, init_breakpoint_sal)
1326 (create_breakpoint_sal, create_breakpoints_sal)
1327 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
1328 * breakpoint.h (struct breakpoint) <ops>: Now const.
1329 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
1330 const.
1331
1332 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
1333
1334 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
1335
1336 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1337
1338 * breakpoint.h (print_recreate_thread): Declare.
1339 (struct breakpoint): Move step_count, pass_count,
1340 number_on_target, static_trace_marker_id,
1341 static_trace_marker_id_idx ...
1342 (struct tracepoint): ... to this new struct.
1343 (get_tracepoint, get_tracepoint_by_number_on_target)
1344 (get_tracepoint_by_number): Change return type to struct
1345 tracepoint pointer.
1346 * breakpoint.c (is_tracepoint_type): New, factored out from
1347 is_tracepoint.
1348 (is_tracepoint): Adjust.
1349 (print_one_breakpoint_location): Cast to struct tracepoint as
1350 necessary, and adjust.
1351 (print_recreate_catch_fork, print_recreate_catch_vfork)
1352 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
1353 print_recreate_thread.
1354 (init_breakpoint_sal): New, factored out from
1355 create_breakpoint_sal.
1356 (create_breakpoint_sal): Reimplement.
1357 (create_breakpoint): Allocate a struct tracecepoint if the caller
1358 wanted a tracepoint. Use init_breakpoint_sal and
1359 install_breakpoint.
1360 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
1361 (print_recreate_masked_watchpoint)
1362 (print_recreate_exception_catchpoint): Call print_recreate_thread.
1363 (tracepoint_print_one_detail): Adjust.
1364 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
1365 Dump the pass count here.
1366 (update_static_tracepoint): Adjust.
1367 (addr_string_to_sals): Adjust.
1368 (create_tracepoint_from_upload): Adjust. Change return type to
1369 struct tracepoint pointer.
1370 (trace_pass_set_count): Change parameter type to struct tracepoint
1371 pointer, and adjust.
1372 (trace_pass_command): Adjust.
1373 (get_tracepoint, get_tracepoint_by_number_on_target)
1374 (get_tracepoint_by_number): Change return type to struct
1375 tracepoint pointer, and adjust.
1376 (print_recreate_thread): New, factored out from save_breakpoints.
1377 (save_breakpoints): Don't print thread and task and passcount
1378 recreation here.
1379 * remote.c (remote_download_tracepoint): Adjust.
1380 * tracepoint.c (trace_actions_command, validate_actionline)
1381 (start_tracing, tfind_1, trace_find_tracepoint_command)
1382 (trace_dump_command): Adjust.
1383 (find_matching_tracepoint): Change return type to struct
1384 tracepoint pointer, and adjust.
1385 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
1386 (tfile_trace_find, tfile_fetch_registers): Adjust.
1387 * tracepoint.h (create_tracepoint_from_upload): Change return type
1388 to struct tracepoint pointer.
1389 * ada-lang.c (print_recreate_exception): Call
1390 print_recreate_thread.
1391 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
1392
1393 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1394
1395 * breakpoint.h (struct breakpoint): Move ops as first field. Move
1396 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
1397 cond_exp_valid_block, val, val_valid, watchpoint_frame,
1398 watchpoint_thread, watchpoint_triggered ...
1399 (struct watchpoint): ... to this new struct.
1400 (is_watchpoint): Declare.
1401 (install_breakpoint): Add new `internal' parameter.
1402 * breakpoint.c (is_watchpoint): Delete declaration.
1403 (set_breakpoint_condition): Handle watchpoints.
1404 (is_watchpoint): Make public.
1405 (watchpoint_in_thread_scope): Change parameter type to struct
1406 watchpoint.
1407 (watchpoint_del_at_next_stop): Change parameter type to struct
1408 watchpoint. Remove assertion. Adjust.
1409 (update_watchpoint): Ditto.
1410 (insert_breakpoints, breakpoint_init_inferior)
1411 (watchpoints_triggered, watchpoint_check)
1412 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
1413 (bpstat_stop_status, print_one_breakpoint_location)
1414 (print_one_breakpoint_location, watchpoint_locations_match): Cast
1415 to struct watchpoint as necessary, and adjust.
1416 (install_breakpoint): Add `internal' argument. If true, don't
1417 mention the new breakpoint. Use set_breakpoint_number.
1418 (create_fork_vfork_event_catchpoint)
1419 (create_syscall_event_catchpoint): Adjust.
1420 (dtor_watchpoint): New.
1421 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
1422 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
1423 (print_it_watchpoint, print_mention_watchpoint)
1424 (print_recreate_watchpoint, insert_masked_watchpoint)
1425 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
1426 (print_one_detail_masked_watchpoint)
1427 (print_mention_masked_watchpoint)
1428 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
1429 necessary, and adjust.
1430 (watch_command_1): Allocate and initialize a struct watchpoint
1431 instead of a struct breakpoint. Use install_breakpoint.
1432 (catch_exec_command_1): Adjust.
1433 (base_breakpoint_dtor): Delete accesses to watchpoint specific
1434 fields.
1435 (delete_breakpoint, enable_breakpoint_disp)
1436 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
1437 as necessary, and adjust.
1438 (initialize_breakpoint_ops): Install dtor_watchpoint as
1439 watchpoints' dtor method.
1440 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
1441 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
1442 to struct watchpoint as necessary, and adjust.
1443
1444 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1445
1446 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
1447 the the base class ops table.
1448 (catch_exception_breakpoint_ops)
1449 (catch_exception_unhandled_breakpoint_ops)
1450 (catch_assert_breakpoint_ops): Don't statically initialize.
1451 (initialize_ada_catchpoint_ops): New.
1452 (_initialize_ada_language): Call it.
1453 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
1454 (bkpt_breakpoint_ops): Forward declare.
1455 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1456 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
1457 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1458 (masked_watchpoint_breakpoint_ops)
1459 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
1460 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
1461 base class ops table.
1462 (null_re_set, null_check_status, null_works_in_software_mode)
1463 (null_resources_needed, null_print_one_detail): Delete.
1464 (bkpt_dtor): Rename to ...
1465 (base_breakpoint_dtor): ... this. Make static.
1466 (bkpt_allocate_location): Rename to ...
1467 (base_breakpoint_allocate_location): ... this. Make static.
1468 (base_breakpoint_re_set): New.
1469 (internal_error_pure_virtual_called): New.
1470 (base_breakpoint_insert_location, base_breakpoint_remove_location)
1471 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
1472 (base_breakpoint_works_in_software_mode)
1473 (base_breakpoint_resources_needed, base_breakpoint_print_it)
1474 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
1475 (base_breakpoint_print_recreate): New functions.
1476 (base_breakpoint_ops): New global.
1477 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
1478 (bkpt_breakpoint_hit): Make static.
1479 (bkpt_check_status): Delete.
1480 (bkpt_resources_needed): Make static.
1481 (bkpt_works_in_software_mode): Delete.
1482 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
1483 static.
1484 (bkpt_breakpoint_ops, internal_breakpoint_ops)
1485 (momentary_breakpoint_ops): Don't statically initialize.
1486 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
1487 Delete.
1488 (tracepoint_insert_location, tracepoint_remove_location)
1489 (tracepoint_check_status, tracepoint_works_in_software_mode)
1490 (tracepoint_print_it): Delete.
1491 (tracepoint_breakpoint_ops): Don't statically initialize.
1492 (initialize_breakpoint_ops): New.
1493 (_initialize_breakpoint): Call it.
1494 * breakpoint.h (null_re_set, null_works_in_software_mode)
1495 (null_resources_needed, null_check_status, null_print_one_detail):
1496 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1497 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1498 (bkpt_check_status, bkpt_resources_needed)
1499 (bkpt_works_in_software_mode, bkpt_print_it)
1500 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1501 Delete declarations.
1502 (initialize_breakpoint_ops): Declare.
1503
1504 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1505
1506 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
1507 (momentary_bkpt_print_it): Simplify.
1508
1509 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1510
1511 Split internal, momentary and user breakpoints breakpoint_ops
1512 tables.
1513
1514 * breakpoint.c (internal_breakpoint_ops)
1515 (momentary_breakpoint_ops): Forward declare.
1516 (create_internal_breakpoint): Add new breakpoint_ops parameter.
1517 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
1518 (create_overlay_event_breakpoint)
1519 (create_std_terminate_master_breakpoint)
1520 (create_exception_master_breakpoint): Create breakpoints with
1521 internal_breakpoint_ops vtable.
1522 (set_longjmp_breakpoint): Create momentary breakpoints with
1523 momentary_breakpoint_ops vtable, using
1524 momentary_breakpoint_from_master.
1525 (create_thread_event_breakpoint, create_jit_event_breakpoint)
1526 (create_solib_event_breakpoint): Create breakpoints with
1527 internal_breakpoint_ops vtable.
1528 (set_momentary_breakpoint): Create breakpoints with
1529 momentary_breakpoint_ops vtable.
1530 (momentary_breakpoint_from_master): New, factored out from
1531 clone_momentary_breakpoint.
1532 (clone_momentary_breakpoint): Adjust.
1533 (watch_command_1): Create scope breakpoints with
1534 momentary_breakpoint_ops vtable.
1535 (bkpt_re_set): Remove handling of internal and momentary
1536 breakpoints.
1537 (bkpt_print_mention, bkpt_print_recreate): New.
1538 (bkpt_breakpoint_ops): Adjust.
1539 (internal_bkpt_re_set, internal_bkpt_check_status)
1540 (internal_bkpt_print_it, internal_bkpt_print_mention)
1541 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
1542 (momentary_bkpt_re_set, momentary_bkpt_check_status)
1543 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
1544 (momentary_bkpt_print_recreate): New.
1545 (momentary_breakpoint_ops): New.
1546
1547 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1548
1549 Implement most breakpoint_ops methods for all breakpoint types,
1550 and move the default handlings to the proper callbacks.
1551
1552 * breakpoint.c (update_watchpoint): Always call the breakpoint's
1553 works_in_software_mode method.
1554 (insert_bp_location): Go through breakpoint_ops->insert_location
1555 for software and hardware watchpoints.
1556 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
1557 breakpoint_ops.
1558 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
1559 for software and hardware watchpoints.
1560 (print_it_typical): Delete.
1561 (print_bp_stop_message): Always call the breakpoint_ops->print_it
1562 method.
1563 (watchpoint_check): Adjust comment.
1564 (bpstat_check_location): Simply always call the breakpoint's
1565 breakpoint_hit method.
1566 (bpstat_stop_status): Always call the breakpoint's check_status
1567 method. Remove special cases for watchpoints and internal event
1568 breakpoints from here (moved to the check_status implementations).
1569 (print_one_breakpoint_location): Assume b->ops is never NULL.
1570 Remove static tracepoint marker id printing from here (moved to
1571 the print_one_detail callback implementation of tracepoints).
1572 (init_bp_location): Assert OPS is never NULL.
1573 (allocate_bp_location): Always call the breakpoint's
1574 allocate_location method, and remove the default code from here.
1575 (free_bp_location): Always call the location's dtor method, and
1576 remove the default code from here.
1577 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
1578 (set_raw_breakpoint_without_location): Add new breakpoint_ops
1579 parameter. Pass it down.
1580 (set_raw_breakpoint): Ditto.
1581 (print_it_catch_fork): Adjust to take a bpstat as argument.
1582 (catch_fork_breakpoint_ops): Install methods.
1583 (print_it_catch_vfork): Adjust to take a bpstat as argument.
1584 (catch_vfork_breakpoint_ops): Install methods.
1585 (dtor_catch_syscall): Call the base dtor.
1586 (print_it_catch_syscall): Adjust to take a bpstat as argument.
1587 (catch_syscall_breakpoint_ops): Install methods.
1588 (dtor_catch_exec): Call the base dtor.
1589 (print_it_catch_exec): Adjust to take a bpstat as argument.
1590 (catch_exec_breakpoint_ops): Install methods.
1591 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
1592 the breakpoint's resources_needed method, and remove the default
1593 code from here.
1594 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
1595 breakpoint_ops.
1596 (clone_momentary_breakpoint): Clone the original's ops.
1597 (mention): Always call the breakpoint's print_mention method, and
1598 remove the default code from here.
1599 (create_breakpoint_sal): Adjust to pass the ops to
1600 set_raw_breakpoint rather than setting it manually.
1601 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
1602 ops to set_raw_breakpoint_without_location rather than setting it
1603 manually.
1604 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
1605 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
1606 (ranged_breakpoint_ops): Install methods.
1607 (break_range_command): Adjust to pass the ops to
1608 set_raw_breakpoint rather than setting it manually.
1609 (re_set_watchpoint, breakpoint_hit_watchpoint)
1610 (check_status_watchpoint, resources_needed_watchpoint)
1611 (works_in_software_mode_watchpoint, print_it_watchpoint)
1612 (print_mention_watchpoint, print_recreate_watchpoint): New
1613 functions.
1614 (watchpoint_breakpoint_ops): Install new methods.
1615 (print_it_masked_watchpoint): New function.
1616 (masked_watchpoint_breakpoint_ops): Install new methods.
1617 (watch_command_1): Adjust to pass the right breakpoint_ops to
1618 set_raw_breakpoint_without_location rather than setting it
1619 manually later. Record the current pspace.
1620 (print_it_exception_catchpoint): Adjust to take a bpstat as
1621 argument.
1622 (gnu_v3_exception_catchpoint_ops): Install new methods.
1623 (say_where): New function.
1624 (null_re_set, null_check_status, null_works_in_software_mode)
1625 (null_resources_needed, null_print_one_detail, bp_location_dtor):
1626 New functions.
1627 (bp_location_ops): New global.
1628 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1629 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1630 (bkpt_check_status, bkpt_resources_needed)
1631 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
1632 (bkpt_print_recreate): New functions.
1633 (bkpt_breakpoint_ops): New global.
1634 (tracepoint_re_set, tracepoint_insert_location)
1635 (tracepoint_remove_location, tracepoint_breakpoint_hit)
1636 (tracepoint_check_status, tracepoint_works_in_software_mode)
1637 (tracepoint_print_it, tracepoint_print_one_detail)
1638 (tracepoint_print_mention, tracepoint_print_recreate): New
1639 functions.
1640 (tracepoint_breakpoint_ops): New global.
1641 (delete_breakpoint): Always call the breakpoint's dtor method, and
1642 remove the default handling from here.
1643 (breakpoint_re_set_default): Make static.
1644 (breakpoint_re_set_one): Always call the breakpoints re_set
1645 method, and remove the default handling from here.
1646 (trace_command, ftrace_command, strace_command)
1647 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
1648 to create_breakpoint.
1649 (save_breakpoints): Always call the breakpoint's print_recreate
1650 method, and remove the default handling from here.
1651
1652 * ada-lang.c (dtor_exception): Call the base dtor.
1653 (re_set_exception): Call the base method.
1654 (print_it_exception, print_it_catch_exception): Adjust to take a
1655 bpstat as argument.
1656 (catch_exception_breakpoint_ops): Install methods.
1657 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
1658 argument.
1659 (catch_exception_unhandled_breakpoint_ops): Install methods.
1660 (print_it_catch_assert): Adjust to take a bpstat as argument.
1661 (catch_assert_breakpoint_ops): Install methods.
1662
1663 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
1664 to take a bpstat as argument.
1665 (enum print_stop_action): Add describing comments to each enum
1666 value.
1667 (breakpoint_re_set_default): Delete declaration.
1668 (null_re_set, null_works_in_software_mode, null_resources_needed)
1669 (null_check_status, null_print_one_detail): Declare.
1670 (bkpt_breakpoint_ops): Declare.
1671 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1672 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1673 (bkpt_check_status, bkpt_resources_needed)
1674 (bkpt_works_in_software_mode, bkpt_print_it)
1675 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1676 Declare.
1677
1678 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
1679 bkpt_breakpoint_ops.
1680 * python/py-breakpoint.c (bppy_init): Ditto.
1681
1682 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1683
1684 * MAINTAINERS (Write After Approval): Add myself to the list.
1685
1686 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1687
1688 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
1689
1690 2011-07-22 Pedro Alves <pedro@codesourcery.com>
1691
1692 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
1693 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
1694 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
1695 adjust.
1696 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
1697 (struct i386_debug_reg_state): New.
1698 (i386_init_dregs): New.
1699 (dr_mirror): New.
1700 (i386_cleanup_dregs): Use i386_init_dregs.
1701 (i386_show_dr): Add state parameter and adjust.
1702 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
1703 the inferior here.
1704 (i386_remove_aligned_watchpoint): Likewise.
1705 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
1706 (i386_update_inferior_debug_regs): New.
1707 (i386_insert_watchpoint): Work on a local mirror of the debug
1708 registers, and only update the inferior on success.
1709 (i386_remove_watchpoint): Ditto.
1710 (i386_region_ok_for_watchpoint): Adjust.
1711 (i386_stopped_data_address): Adjust.
1712 (i386_insert_hw_breakpoint): Adjust.
1713 (i386_remove_hw_breakpoint): Adjust.
1714
1715 2011-07-22 Tom Tromey <tromey@redhat.com>
1716
1717 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1718 from amd64_pseudo_register_read. Change arguments. Call
1719 mark_value_bytes_unavailable when needed.
1720 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1721 set_gdbarch_pseudo_register_read.
1722 * sentinel-frame.c (sentinel_frame_prev_register): Use
1723 regcache_cooked_read_value.
1724 * regcache.h (regcache_cooked_read_value): Declare.
1725 * regcache.c (regcache_cooked_read_value): New function.
1726 (regcache_cooked_read): Call
1727 gdbarch_pseudo_register_read_value if available.
1728 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1729 (i386_pseudo_register_read): Remove.
1730 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1731 i386_pseudo_register_read. Change arguments. Call
1732 mark_value_bytes_unavailable when needed.
1733 (i386_pseudo_register_read_value): New function.
1734 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1735 not set_gdbarch_pseudo_register_read.
1736 * gdbarch.sh (pseudo_register_read_value): New method.
1737 * gdbarch.c, gdbarch.h: Rebuild.
1738 * findvar.c (value_from_register): Call get_frame_register_value.
1739
1740 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
1741
1742 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1743 get_prefix.
1744 (display_gdb_prompt): Likewise.
1745 (change_annotation_level): Likewise.
1746 (push_prompt): Likewise.
1747 (pop_prompt): Likewise.
1748 (handle_stop_sig): Use get_prompt with a level.
1749 * top.c (command_loop): Use get_prompt with a level.
1750 (set_async_annotation_level): Use set_prompt with a level.
1751 (get_prefix): New function.
1752 (set_prefix): Ditto.
1753 (set_suffix): Ditto.
1754 (get_suffix): Ditto.
1755 (get_prompt): Accept a level argument.
1756 (set_prompt): Accept a level argument. Free old prompts. Set
1757 new_async_prompt if level is 0.
1758 (init_main): Use set_prompt with a level. Do not set
1759 new_async_prompt.
1760 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1761 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1762 Modify set_prompt, get_prompt to account for levels.
1763 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1764 level.
1765 * python/python.c (before_prompt_hook): Use set_prompt.
1766
1767 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1768
1769 * defs.h: Add guard against inclusion in gdbserver.
1770 (struct ptid, ptid_t): Move to common/ptid.h.
1771 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1772 xsnprintf, internal_error): Move to common/common-utils.h.
1773 (nomem): Delete.
1774 * gdb_assert.h: Move into common/ sub-directory.
1775 * gdb_locale.h: Ditto.
1776 * gdb_dirent.h: Ditto.
1777 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1778 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1779 Move into common/ptid.h.
1780 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1781 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1782 Change nomem to malloc_failure.
1783 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1784 * utils.c (nomem): Rename to malloc_failure.
1785 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1786 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1787 (gdb_buildargv): Change nomem to malloc_failure.
1788 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1789 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1790 ptid_is_pid): Move into common/ptid.c.
1791 (initialize_infrun): Delete initialization of null_ptid and
1792 minus_one_ptid.
1793 * linux-nat.c (linux_nat_xfer_osdata): Defer to
1794 linux_common_xfer_osdata.
1795 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1796 common/ptid.c and common/buffer.c.
1797 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1798 common/ptid.h, common/buffer.h and common/linux-osdata.h.
1799 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1800 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1801 rules.
1802 * common/gdb_assert.h: New.
1803 * common/gdb_dirent.h: New.
1804 * common/gdb_locale.h: New.
1805 * common/buffer.c: New.
1806 * common/buffer.h: New.
1807 * common/ptid.c: New.
1808 * common/ptid.h: New.
1809 * common/xml-utils.c: New.
1810 * common/xml-utils.h: New.
1811 * common/common-utils.c: New.
1812 * common/common-utils.h: New.
1813 * common/linux-osdata.c: New.
1814 * common/linux-osdata.h: New.
1815 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1816 * config/arm/linux.mh (NATDEPFILES): Ditto.
1817 * config/i386/linux.mh (NATDEPFILES): Ditto.
1818 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1819 * config/ia64/linux.mh (NATDEPFILES): Ditto.
1820 * config/m32r/linux.mh (NATDEPFILES): Ditto.
1821 * config/m68k/linux.mh (NATDEPFILES): Ditto.
1822 * config/mips/linux.mh (NATDEPFILES): Ditto.
1823 * config/pa/linux.mh (NATDEPFILES): Ditto.
1824 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1825 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1826 * config/s390/s390.mh (NATDEPFILES): Ditto.
1827 * config/sparc/linux.mh (NATDEPFILES): Ditto.
1828 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1829 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1830
1831 2011-07-21 Matt Rice <ratmice@gmail.com>
1832
1833 * NEWS: Add info macros and info definitions commands.
1834
1835 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1836
1837 * NEWS: Document Python prompt substitution hook.
1838
1839 2011-07-18 Matt Rice <ratmice@gmail.com>
1840
1841 PR macros/12999
1842 * macrotab.h (macro_callback_fn): Add new arguments to callback.
1843 * macrotab.c (foreach_macro): Ditto.
1844 (foreach_macro_in_scope): Ditto.
1845 * macrocmd.c (print_macro_callback): New function.
1846 (info_macro_command): Move some code to print_macro_definition.
1847 (print_macro_definition): New function.
1848 (print_one_macro): Add new arguments to callback.
1849 (info_definitions_command): New function.
1850 (info_macros_command): Ditto.
1851 (_initialize_macrocmd): Add info macros and info definitions commands.
1852 * symtab.c (add_macro_name): Add new arguments to callback.
1853
1854 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1855 Tom Tromey <tromey@redhat.com>
1856
1857 * top.c (set_prompt): Rewrite to free previous prompt, free
1858 asynch_new_prompt and set both on new prompts.
1859 * event-top.c (display_gdb_prompt): Add prompt substitution
1860 logic.
1861 * python/python.c (before_prompt_hook): New function.
1862
1863 2011-07-20 Matt Rice <ratmice@gmail.com>
1864
1865 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1866 arguments to store_unsigned_integer.
1867
1868 2011-07-20 Tom Tromey <tromey@redhat.com>
1869
1870 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1871 in some declaration-only cases.
1872
1873 2011-07-18 Tom Tromey <tromey@redhat.com>
1874
1875 PR symtab/12984:
1876 * dwarf2read.c (dwarf2_section_info_def): New typedef.
1877 (struct dwarf2_per_objfile) <types>: Change to a VEC.
1878 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1879 <debug_type_section>: New field.
1880 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1881 (load_cu): Use appropriate section.
1882 (create_signatured_type_table_from_index): Add 'section'
1883 argument.
1884 (dwarf2_read_index): Only allow a single .debug_types section.
1885 (dw2_get_file_names): Use appropriate section.
1886 (read_type_comp_unit_head): Add 'section' argument.
1887 (create_debug_types_hash_table): Loop over all .debug_types
1888 sections.
1889 (init_cu_die_reader): Use appropriate section.
1890 (process_psymtab_comp_unit, load_partial_comp_unit)
1891 (load_full_comp_unit, read_die_and_children, find_partial_die)
1892 (lookup_die_type, determine_prefix, follow_die_offset): Update.
1893 (lookup_signatured_type_at_offset): Add 'section' argument.
1894 (read_signatured_type_at_offset): Add 'sect' argument.
1895 (read_signatured_type): Use appropriate section.
1896 (set_die_type, get_die_type_at_offset): Update.
1897 (dwarf2_per_objfile_free): Free all .debug_types sections, and
1898 VEC.
1899 (write_psymtabs_to_index): Don't allow index with more than one
1900 .debug_types section.
1901
1902 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1903
1904 Fix crash if referenced CU is aged out.
1905 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1906 xfree of block.data.
1907 (indirect_pieced_value): New variable back_to, use to for xfree of
1908 baton.data.
1909 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1910 block.data.
1911 * dwarf2read.c (dwarf2_find_base_address): New prototype.
1912 (load_cu): New function from ...
1913 (dw2_do_instantiate_symtab): ... the code here ...
1914 (process_full_comp_unit): ... and here.
1915 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
1916 retval.data.
1917
1918 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1919
1920 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1921 type.
1922
1923 2011-07-19 Gary Benson <gbenson@redhat.com>
1924
1925 * infrun.c (struct execution_control_state): New member
1926 stop_func_filled_in.
1927 (clear_stop_func, fill_in_stop_func): New functions.
1928 (handle_inferior_event): Call clear_stop_func rather than
1929 manipulating the execution control state directly.
1930 Call fill_in_stop_func lazily as required rather than
1931 directly calling find_pc_partial_function in all cases.
1932
1933 2011-07-18 Tom Tromey <tromey@redhat.com>
1934
1935 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1936 checking for variable-sized array.
1937
1938 2011-07-18 Jean-Charles Delay <delay@adacore.com>
1939
1940 * varobj.h (varobj_languages): Add vlang_ada definition to the list
1941 of supported languages.
1942 * varobj.c: Add top definitions and basic implementation of the
1943 following callbacks: ada_number_of_children, ada_name_of_variable,
1944 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1945 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1946 (languages): Register Ada-specific callbacks.
1947 (variable_language): Add the Ada case in the language setter switch.
1948
1949 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1950
1951 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1952
1953 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1954
1955 Code cleanup.
1956 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1957 (execute_stack_op): Use dwarf2_frame_ctx_funcs
1958 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1959 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1960 get_frame_cfa, get_tls_address and dwarf_call via funcs.
1961 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1962 (struct dwarf_expr_context_funcs): New, move here methods from ...
1963 (struct dwarf_expr_context): ... here. New fields funcs.
1964 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1965 (dwarf_expr_ctx_funcs): New.
1966 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1967 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1968 (needs_frame_ctx_funcs): New.
1969 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1970
1971 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1972
1973 * MAINTAINERS (Write After Approval): Add myself to the list.
1974
1975 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1976
1977 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1978 that CIE pointer of an FDE really points to a CIE .
1979
1980 2011-07-15 Hui Zhu <teawater@gmail.com>
1981
1982 * remote.c (remote_get_trace_status): Add comments.
1983
1984 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1985
1986 Code cleanup - constify struct lval_funcs.
1987 * dwarf2loc.c (pieced_value_funcs): Make it const.
1988 * infrun.c (siginfo_value_funcs): Likewise.
1989 * opencl-lang.c (opencl_value_funcs): Likewise.
1990 * valops.c (value_assign, value_ind): Make the funcs variable const.
1991 * value.c (struct value): Make location.computed.funcs target const.
1992 Rearrange the comments.
1993 (allocate_computed_value): Make the funcs parameter target const.
1994 (value_computed_funcs): Return the funcs target const.
1995 (value_free, value_copy, set_value_component_location): Make the funcs
1996 variable const.
1997 * value.h (allocate_computed_value): Make the funcs parameter target
1998 const.
1999 (value_computed_funcs): Return the funcs target const.
2000 * windows-tdep.c (tlb_value_funcs): Make it const.
2001
2002 2011-07-14 Hui Zhu <teawater@gmail.com>
2003
2004 * remote.c (remote_get_trace_status): Initialize p.
2005
2006 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2007
2008 Work around kgdb.
2009 * remote.c (remote_get_trace_status): New variable ex. Put
2010 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
2011
2012 2011-07-13 Tom Tromey <tromey@redhat.com>
2013
2014 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
2015 value_from_contents for final conversion.
2016
2017 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2018
2019 Code cleanup.
2020 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
2021 Indent prototypes so they do not get into tags.
2022
2023 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2024
2025 Code cleanup making also optimized out values lazy.
2026 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
2027 allocate_optimized_out_value. Twice.
2028 (loclist_read_variable) Use allocate_optimized_out_value. Once.
2029 * findvar.c (read_var_value): Likewise.
2030 * value.c (allocate_optimized_out_value): New function.
2031 * value.h (allocate_optimized_out_value): New declaration.
2032
2033 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2034
2035 Fix occasional crash of CTRL-C during DWARF read in.
2036 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
2037
2038 2011-07-11 Tom Tromey <tromey@redhat.com>
2039
2040 * regcache.c (struct regcache_descr): Fix typo.
2041 * i387-tdep.c (i387_supply_xsave): Fix typo.
2042
2043 2011-07-11 Tom Tromey <tromey@redhat.com>
2044
2045 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
2046 (read_file_scope, read_type_unit_scope): Use it.
2047
2048 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2049
2050 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
2051 `int'.
2052
2053 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
2054
2055 PR python/12438
2056 * python/python.c: Set gdbpy_should_print_stack default to off.
2057 (set_python): Deprecate maint set python print-stack to
2058 class_deprecate.
2059 (_initialize_python): Deprecate maint set/show python print-stack.
2060 Add new prefix command, python. Add new setting, print-backtrace.
2061 * NEWS: Document set python print-stack. Document default change.
2062
2063 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
2064
2065 * python/py-inferior.c (infpy_dealloc): New function.
2066 (inferior_to_inferior_object): Return a new object, or a
2067 new reference to the existing object.
2068 (find_thread_object): Cleanup references to inferior.
2069 (delete_thread_object): Ditto.
2070 * python/py-infthread.c (create_thread_object): Do not increment
2071 inferior reference count.
2072
2073 2011-07-08 Tom Tromey <tromey@redhat.com>
2074
2075 * dwarf2loc.c (locexpr_regname): New function.
2076 (locexpr_describe_location_piece): Use it.
2077 (disassemble_dwarf_expression): Add per_cu argument. Use
2078 locexpr_regname.
2079 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
2080 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
2081 New cases.
2082 (locexpr_describe_location_1): Add per_cu argument.
2083 (locexpr_describe_location): Update.
2084 (loclist_describe_location): Update.
2085
2086 2011-07-08 Tom Tromey <tromey@redhat.com>
2087
2088 * dwarf2expr.c (execute_stack_op): Add QUIT.
2089
2090 2011-07-07 Hui Zhu <teawater@gmail.com>
2091
2092 Revert:
2093 2011-07-06 Hui Zhu <teawater@gmail.com>
2094 * remote.c (remote_start_remote): Add TRY_CATCH for
2095 remote_get_trace_status.
2096 * tracepoint.c (disconnect_tracing): Ditto.
2097
2098 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
2099
2100 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
2101 variables as signed, not unsigned.
2102
2103 2011-07-06 Joel Brobecker <brobecker@adacore.com>
2104
2105 * jit.c (jit_inferior_init): Reformat forward declaration.
2106
2107 2011-07-06 Matt Rice <ratmice@gmail.com>
2108
2109 * MAINTAINERS (Write After Approval): Add myself to the list.
2110
2111 2011-07-06 Hui Zhu <teawater@gmail.com>
2112
2113 * remote.c (remote_start_remote): Add TRY_CATCH for
2114 remote_get_trace_status.
2115 * tracepoint.c (disconnect_tracing): Ditto.
2116
2117 2011-07-05 Tom Tromey <tromey@redhat.com>
2118
2119 * symtab.c (operator_chars): Now static.
2120 * linespec.c (operator_chars): Don't declare.
2121
2122 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2123
2124 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
2125
2126 2011-07-05 Tom Tromey <tromey@redhat.com>
2127
2128 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
2129 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
2130 (TYPE_CPLUS_REALLY_JAVA): New macro.
2131 * dwarf2read.c (process_structure_scope): Set
2132 TYPE_CPLUS_REALLY_JAVA.
2133
2134 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2135
2136 * ada-lang.c: Fix typos.
2137 * amd64-tdep.c: Likewise.
2138 * breakpoint.c: Likewise.
2139 * cli/cli-decode.c: Likewise.
2140 * findcmd.c: Likewise.
2141 * inline-frame.c: Likewise.
2142 * mi/mi-main.c: Likewise.
2143 * minsyms.c: Likewise.
2144 * monitor.c: Likewise.
2145 * monitor.h: Likewise.
2146 * prologue-value.c: Likewise.
2147 * reverse.c: Likewise.
2148 * s390-tdep.c: Likewise.
2149
2150 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2151
2152 * jit.c (jit_inferior_init): Forward declare.
2153 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
2154
2155 2011-07-04 Joel Brobecker <brobecker@adacore.com>
2156
2157 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
2158
2159 2011-07-04 Tristan Gingold <gingold@adacore.com>
2160
2161 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
2162 (tcb_fieldno): Add activation_link field.
2163 (get_known_tasks_addr): Moved and rewritten.
2164 (get_tcb_types_info): Set activation_link field.
2165 (read_known_tasks_array): Add parameter. Rewritten.
2166 (read_known_tasks_list): New function.
2167 (read_known_tasks): New function.
2168 (ada_build_task_list): Call read_known_tasks instead of
2169 read_known_tasks_array.
2170 * ravenscar-thread.c: Add first_task_name constant.
2171 (has_ravenscar_runtime): Check for task list too.
2172
2173 2011-07-04 Tristan Gingold <gingold@adacore.com>
2174
2175 * ada-tasks.c: Renames fieldno to actb_fieldno.
2176 (ada_get_task_number): Indentation.
2177 (get_tcb_types_info): Remove all parameters. Write directly
2178 the globals.
2179 (ptid_from_atcb_common): Adjust.
2180 (read_atcb): Adjust.
2181
2182 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2183
2184 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
2185
2186 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2187
2188 * ui-out.c (ui_out_field_core_addr): Mention that the function
2189 description is in the header file.
2190 * ui-out.h (ui_out_field_core_addr): Document function.
2191
2192 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2193
2194 * ui-out.c (ui_out_get_field_separator): Remove unused function.
2195 * ui-out.h (ui_out_get_field_separator): Remove prototype.
2196
2197 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2198
2199 * symtab.c (expand_line_sal): Remove empty line.
2200
2201 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
2202
2203 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
2204 same way as ELFOSABI_NONE.
2205 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
2206
2207 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2208
2209 * breakpoint.c: Fix typos in comments.
2210 * linespec.c: Likewise.
2211 * symtab.c: Likewise.
2212
2213 2011-07-04 Joel Brobecker <brobecker@adacore.com>
2214
2215 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
2216 section in separate object files.
2217
2218 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2219
2220 Fix false GCC warning.
2221 * linespec.c (decode_line_1): Initialize values.
2222
2223 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2224
2225 * linespec.c (find_method): Accept the function type automatically only
2226 if it was specified with parameter types.
2227
2228 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2229
2230 Stop on first linespec terminator instead of eating what we can.
2231 * linespec.c (is_linespec_boundary): New function.
2232 (name_end): Remove function.
2233 (keep_name_info): New parameter on_boundary, replace the body.
2234 (decode_line_1): Provide the parameter to keep_name_info.
2235 (decode_compound): Likewise. Drop the trailing java return type
2236 handling. Twice.
2237
2238 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2239
2240 Fall back linespec to minimal symbols.
2241 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
2242 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
2243 (find_method, symbol_found): Change error to cplusplus_error.
2244
2245 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2246
2247 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
2248
2249 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2250 Tom Tromey <tromey@redhat.com>
2251
2252 * dwarf2read.c (check_physname): New variable.
2253 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
2254 (show_check_physname): New function.
2255 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
2256
2257 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2258
2259 * machoread.c (macho_symfile_read): Delete OBE comment.
2260
2261 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2262
2263 * machoread.c (struct macho_oso_data): Delete.
2264 (current_oso): Delete.
2265 (macho_relocate_common_syms): New function, mostly extracted
2266 out of
2267 (macho_add_oso_symfile): Call macho_relocate_common_syms.
2268 Remove code that sets and unset current_oso.
2269 (macho_symfile_relocate): Delete handling of common symbols,
2270 now moved to macho_relocate_common_syms.
2271
2272 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2273
2274 * darwin-nat.c (darwin_ptrace): Add documentation.
2275 Set errno to zero before calling ptrace. If ptrace returns
2276 -1 and errno is zero, then change then return zero.
2277 (darwin_kill_inferior): Issue a warning instead of triggering
2278 a failed assertion when the PT_KILL ptrace operations returned
2279 nonzero.
2280
2281 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2282
2283 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
2284 only when inf->private->no_ptrace.
2285
2286 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2287
2288 * ada-lang.c (print_it_exception): Print temporary catchpoints
2289 as "Temporary catchpoint".
2290 (print_mention_exception): Likewise.
2291
2292 2011-07-01 Tom Tromey <tromey@redhat.com>
2293
2294 * jv-lang.c (java_language_defn): Use java_printchar,
2295 java_printstr.
2296 (java_get_encoding): New function.
2297 (java_emit_char): Use generic_emit_char.
2298 (java_printchar): New function.
2299 (java_printstr): Likewise.
2300
2301 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2302
2303 * ada-typeprint.c (print_record_type): If unable to decode
2304 the name of the parent type, use the encoded name.
2305
2306 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2307
2308 * ada-typeprint.c (ada_print_type): Fix both PAD type and
2309 pointer to constrained packed array type output.
2310 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
2311 packed array output.
2312
2313 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2314
2315 * ada-typeprint.c (print_array_type): removed if condition on show
2316 being negative for bounds printing.
2317
2318 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2319
2320 * ada-lang.c (ada_identical_enum_types_p): New function.
2321 (symbols_are_identical_enums): New function.
2322 (remove_extra_symbols): Do nothing if NSYMS < 2.
2323 Use symbols_are_identical_enums.
2324
2325 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2326
2327 * ada-valprint.c (ada_value_print): Handle typedefs.
2328
2329 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2330
2331 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
2332
2333 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
2334
2335 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
2336 (decode_constrained_packed_array): Likewise.
2337 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
2338
2339 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2340
2341 * ada-exp.y (convert_char_literal): Handle typedef types.
2342
2343 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2344
2345 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
2346
2347 2011-06-30 Tom Tromey <tromey@redhat.com>
2348
2349 * varobj.c (varobj_create): Call do_cleanups on early exit path.
2350 * valops.c (find_overload_match): Call do_cleanups on early exit
2351 path.
2352 * solib.c (solib_find): Call do_cleanups on early exit path.
2353
2354 2011-06-30 Tom Tromey <tromey@redhat.com>
2355
2356 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
2357 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
2358 return paths. Defer final do_cleanups until last return.
2359 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
2360 early return.
2361
2362 2011-06-30 Tom Tromey <tromey@redhat.com>
2363
2364 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
2365
2366 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
2367
2368 * MAINTAINERS (Write After Approval): Add myself to the list.
2369
2370 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2371
2372 Disable epilogue unwinders on recent GCCs.
2373 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
2374 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2375 * dwarf2read.c (process_full_comp_unit): Initialize
2376 EPILOGUE_UNWIND_VALID.
2377 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
2378 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2379 * symtab.h (struct symtab): New field epilogue_unwind_valid.
2380
2381 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2382
2383 Code cleanup - reformatting.
2384 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
2385 (producer_is_gcc_ge_4): ... here, change the return value.
2386 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
2387 interpretation.
2388
2389 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2390
2391 Fix non-only rename list for Fortran modules import.
2392 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
2393 cp_add_using_directive caller.
2394 (cp_add_using_directive): New parameter excludes, describe it. New
2395 variables ix and param. Compare if also excludes match. Allocate NEW
2396 with variable size, initialize EXCLUDES there.
2397 (cp_lookup_symbol_imports): New variable excludep, test
2398 current->EXCLUDES with it.
2399 * cp-support.h: Include vec.h.
2400 (struct using_direct): New field excludes, describe it.
2401 (DEF_VEC_P (const_char_ptr)): New.
2402 (cp_add_using_directive): New parameter excludes.
2403 * defs.h (const_char_ptr): New typedef.
2404 * dwarf2read.c (read_import_statement): New variables child_die,
2405 excludes and cleanups, read in excludes.
2406 (read_namespace): Adjust the cp_add_using_directive caller.
2407
2408 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2409
2410 Code cleanup.
2411 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
2412 negative comparisons.
2413
2414 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
2415
2416 * mi/mi-main.c (mi_cmd_list_features): Emit
2417 breakpoint-notifications.
2418
2419 2011-06-29 Tom Tromey <tromey@redhat.com>
2420
2421 PR fortran/10036:
2422 * valprint.h (generic_emit_char, generic_printstr): Declare.
2423 * valprint.c (wchar_printable, append_string_as_wide)
2424 (print_wchar): Move from c-lang.c.
2425 (generic_emit_char): New function; mostly taken from c_emit_char.
2426 (generic_printstr): New function; mostly taken from c_printstr.
2427 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
2428 represented as arrays.
2429 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
2430 type.
2431 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
2432 identically to TYPE_CODE_INT.
2433 * f-lang.c (f_get_encoding): New function.
2434 (f_emit_char): Use generic_emit_char.
2435 (f_printchar): Replace comment.
2436 (f_printstr): Use generic_printstr.
2437 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
2438 "character" types specially.
2439 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
2440 for Fortran.
2441 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
2442 Move to valprint.c
2443 (c_emit_char): Call generic_emit_char.
2444 (c_printstr): Call generic_printstr.
2445
2446 2011-06-29 Gary Benson <gbenson@redhat.com>
2447
2448 * breakpoint.c (bpstat_what): Removed duplicated case.
2449
2450 2011-06-28 Tom Tromey <tromey@redhat.com>
2451
2452 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
2453
2454 2011-06-27 Tom Tromey <tromey@redhat.com>
2455
2456 * valops.c (find_overload_match): Call do_cleanups before early
2457 return.
2458 * top.c (execute_command): Call do_cleanups before early return.
2459 (command_loop): Likewise.
2460 * stack.c (backtrace_command): Make a null cleanup early. Don't
2461 conditionally call do_cleanups.
2462 * python/py-value.c (TRY_CATCH): Move cleanup handling into
2463 TRY_CATCH.
2464 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
2465 so cleanups are always run.
2466 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
2467 * findcmd.c (parse_find_args): Call do_cleanups on early return
2468 path.
2469 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
2470 Don't conditionally call do_cleanups.
2471 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
2472 later.
2473
2474 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2475
2476 * MAINTAINERS (Write After Approval): Use default email address.
2477
2478 2011-06-27 Joel Brobecker <brobecker@adacore.com>
2479
2480 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
2481
2482 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2483
2484 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
2485 saved_regs_mask and copied_regs_mask fields.
2486 (sparc_record_save_insn): New prototype.
2487 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
2488 (sparc_record_save_insn): New function.
2489 (sparc_analyze_prologue): Add head comment. Recognize store insns
2490 of call-saved registers. Use OFFSET consistently. Recognize flat
2491 frames and cache their settings.
2492 (sparc32_skip_prologue): Handle flat frames.
2493 (sparc_frame_cache): Add frame_offset to the base address.
2494 (sparc32_frame_cache): Adjust to new frame description.
2495 (sparc32_frame_prev_register): Likewise.
2496 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
2497 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2498 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2499 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
2500 frame by calling sparc_record_save_insn.
2501 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2502 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2503 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2504
2505 2011-06-27 Tristan Gingold <gingold@adacore.com>
2506
2507 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
2508 field by map_addr and map_len.
2509 (dwarf2_read_section): Adjust for the new bfd_mmap api.
2510 (munmap_section_buffer): Likewise.
2511
2512 2011-06-24 Tom Tromey <tromey@redhat.com>
2513
2514 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
2515 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
2516 * python/python.c (gdbpy_parameter): Make 'arg' const.
2517 (execute_gdb_command): Likewise.
2518 (gdbpy_decode_line): Likewise. Copy it.
2519 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
2520 (gdbpy_write): Make 'arg' const.
2521 * python/py-type.c (typy_lookup_typename): Make 'type_name'
2522 const.
2523 (gdbpy_lookup_type): Likewise.
2524 * python/py-prettyprint.c (print_children): Make 'name' const.
2525 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
2526 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
2527 Py_ssize_t.
2528 * python/py-function.c (fnpy_init): Make 'name' const.
2529 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
2530 (gdbpy_string_to_argv): Make 'input' const.
2531 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
2532 it.
2533 * gdbtypes.h (lookup_typename): Update.
2534 * gdbtypes.c (lookup_typename): Make 'name' const.
2535 (lookup_struct): Likewise.
2536 (lookup_union): Likewise.
2537 (lookup_enum): Likewise.
2538
2539 2011-06-24 Tom Tromey <tromey@redhat.com>
2540
2541 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
2542 gdb_thread_db.h. Move all common/ entries to be together.
2543 (TAGS): Don't depend on DEPFILES.
2544
2545 2011-06-23 Yao Qi <yao@codesourcery.com>
2546
2547 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
2548 * remote.c (remote_start_remote): ... here.
2549 * monitor.c (monitor_open): ... here.
2550
2551 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
2552
2553 * gdbtypes.c (append_composite_type_field_aligned): Fix
2554 calculation of bit position based on alignment.
2555
2556 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2557
2558 * breakpoint.c (bpstat_stop_status): Call the check_status
2559 breakpoint_ops method.
2560 (print_one_breakpoint_location): Also print the condition for Ada
2561 exception catchpoints.
2562 (allocate_bp_location): New, factored out from
2563 allocate_bp_location.
2564 (allocate_bp_location): Adjust. Call the owner breakpoint's
2565 allocate_location method, if there is one.
2566 (free_bp_location): Call the locations's dtor method, if there is
2567 one.
2568 (init_raw_breakpoint_without_location): New breakpoint_ops
2569 parameter. Use it.
2570 (set_raw_breakpoint_without_location): Adjust.
2571 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
2572 (set_raw_breakpoint): Adjust.
2573 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2574 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
2575 re_set and check_status methods.
2576 (init_catchpoint): Don't memset, initialize thread, addr_string
2577 and enable_state. Pass the ops down to init_raw_breakpoint.
2578 (install_catchpoint): Rename to ...
2579 (install_breakpoint): ... this, and make extern.
2580 (create_fork_vfork_event_catchpoint): Adjust.
2581 (catch_exec_breakpoint_ops): Install NULL allocate_location,
2582 re_set and check_status methods.
2583 (create_syscall_event_catchpoint): Adjust.
2584 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2585 (masked_watchpoint_breakpoint_ops): Install NULL
2586 allocate_location, re_set and check_status methods.
2587 (catch_exec_command_1): Adjust.
2588 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
2589 re_set and check_status methods.
2590 (create_ada_exception_breakpoint): Rename to ...
2591 (init_ada_exception_breakpoint): ... this. Add a struct
2592 breakpoint parameter, and delete the exp_string, cond_string and
2593 cond parameters. Use init_raw_breakpoint, and don't install or
2594 mention the breakpoint yet. Don't clear breakpoint fields that
2595 init_raw_breakpoint already clears.
2596 (re_set_breakpoint): Delete, split into ...
2597 (breakpoint_re_set_default, prepare_re_set_context): ... these new
2598 functions.
2599 (breakpoint_re_set_one): Call the breakpoint's
2600 breakpoint_ops->re_set implementation, if there's one. Adjust.
2601 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
2602 (struct bp_location_ops): New type.
2603 (struct bp_location): New field `ops'.
2604 (struct breakpoint_ops): New `allocate_location', `re_set' and
2605 `check_status' fields. Make `breakpoint_hit''s description match
2606 reality.
2607 (init_bp_location): Declare.
2608 (breakpoint_re_set_default): Declare.
2609 (create_ada_exception_breakpoint): Rename to ...
2610 (init_ada_exception_breakpoint): ... this. Add a struct
2611 breakpoint parameter, and delete the exp_string, cond_string and
2612 cond parameters.
2613 (install_breakpoint): Declare.
2614 * ada-lang.c: Include exceptions.h.
2615 <Ada exceptions description>: Update.
2616 (struct ada_catchpoint_location): New type.
2617 (ada_catchpoint_location_dtor): New function.
2618 (ada_catchpoint_location_ops): New global.
2619 (ada_catchpoint): New type.
2620 (create_excep_cond_exprs): New function.
2621 (dtor_exception, allocate_location_exception, re_set_exception)
2622 (should_stop_exception, check_status_exception): New functions.
2623 (print_one_exception, print_mention_exception)
2624 (print_recreate_exception): Adjust.
2625 (dtor_catch_exception, allocate_location_catch_exception)
2626 (re_set_catch_exception, check_status_catch_exception): New
2627 functions.
2628 (catch_exception_breakpoint_ops): Install them.
2629 (dtor_catch_exception_unhandled)
2630 (allocate_location_catch_exception_unhandled)
2631 (re_set_catch_exception_unhandled)
2632 (check_status_catch_exception_unhandled): New functions.
2633 (catch_exception_unhandled_breakpoint_ops): Install them.
2634 (dtor_catch_assert, allocate_location_catch_assert)
2635 (re_set_catch_assert, check_status_catch_assert): New functions.
2636 (catch_assert_breakpoint_ops): Install them.
2637 (ada_exception_catchpoint_p): Delete.
2638 (catch_ada_exception_command_split)
2639 (ada_exception_catchpoint_cond_string): Rename exp_string
2640 parameter to excep_string. Adjust.
2641 (ada_parse_catchpoint_condition): Delete.
2642 (ada_exception_sal): Rename the exp_string parameter to
2643 excep_string. Delete the cond_string and cond parameters.
2644 Adjust.
2645 (ada_decode_exception_location): Rename the exp_string parameter
2646 to excep_string. Delete the cond_string and cond parameters.
2647 Adjust.
2648 (create_ada_exception_catchpoint): New function.
2649 (catch_ada_exception_command, ada_decode_assert_location)
2650 (catch_assert_command): Adjust.
2651 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
2652
2653 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2654
2655 * ada-lang.c: Include arch-utils.h.
2656 (ada_decode_exception_location): Make static.
2657 (catch_ada_exception_command): Moved here from breakpoint.c.
2658 (ada_decode_assert_location): Make static.
2659 (catch_assert_command): Moved here from breakpoint.c.
2660 (_initialize_ada_lang): Install the exception and assert
2661 catchpoint commands here.
2662 * ada-lang.h (ada_decode_exception_location)
2663 (ada_decode_assert_location): Delete declarations.
2664 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
2665 breakpoint.h.
2666 (create_ada_exception_breakpoint): Make extern.
2667 (catch_ada_exception_command, catch_assert_command): Moved to
2668 ada-lang.c.
2669 (add_catch_command): Make extern.
2670 (_initilize_breakpoint): Don't install the exception and assert
2671 catchpoint commands here.
2672 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
2673 breakpoint.c
2674 (add_catch_command, create_ada_exception_breakpoint): Declare.
2675
2676 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2677
2678 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
2679 the breakpoint to the breakpoint chain here.
2680 (set_raw_breakpoint_without_location): Add the breakpoint to the
2681 breakpoint chain here.
2682 (init_raw_breakpoint): Adjust comments.
2683 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
2684 here.
2685 (init_catchpoint): Don't set the catchpoint's breakpoint number
2686 here.
2687 (install_catchpoint): New function.
2688 (create_fork_vfork_event_catchpoint)
2689 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
2690 use install_catchpoint.
2691
2692 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2693
2694 * breakpoint.c (create_catchpoint_without_mention)
2695 (create_catchpoint): Delete.
2696
2697 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2698
2699 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
2700 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2701 reference to exec_pathname.
2702 (struct exec_catchpoint): New type.
2703 (dtor_catch_exec): New function.
2704 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
2705 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
2706 (catch_exec_command_1): Adjust to use init_catchpoint.
2707 (delete_breakpoint): Remove reference to exec_pathname.
2708
2709 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2710
2711 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2712 (struct breakpoint): Delete field `syscalls_to_be_caught'.
2713 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2714 reference to syscalls_to_be_caught.
2715 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2716 NULL `dtor'.
2717 (struct syscall_catchpoint): New type.
2718 (dtor_catch_syscall): New function.
2719 (insert_catch_syscall, remove_catch_syscall)
2720 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2721 (print_recreate_catch_syscall): Adjust.
2722 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2723 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2724 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2725 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2726 (masked_watchpoint_breakpoint_ops)
2727 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2728 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2729 there is one. Remove references to syscalls_to_be_caught.
2730 (catching_syscall_number): Adjust.
2731 * ada-lang.c (catch_exception_breakpoint_ops)
2732 (catch_exception_unhandled_breakpoint_ops)
2733 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2734
2735 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2736
2737 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2738 field.
2739 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2740 reference to forked_inferior_pid.
2741 (struct fork_catchpoint): New type.
2742 (breakpoint_hit_catch_fork, print_it_catch_fork)
2743 (print_one_catch_fork, breakpoint_hit_catch_vfork)
2744 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2745 (create_fork_vfork_event_catchpoint): Adjust to use
2746 init_catchpoint.
2747
2748 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2749
2750 * breakpoint.c (add_to_breakpoint_chain)
2751 (init_raw_breakpoint_without_location): New functions, factored
2752 out from ...
2753 (set_raw_breakpoint_without_location): ... this one.
2754 (init_raw_breakpoint): New function, factored out from
2755 set_raw_breakpoint and adjusted to use
2756 init_raw_breakpoint_without_location.
2757 (set_raw_breakpoint): Adjust.
2758 (init_catchpoint): New function, factored out from
2759 create_catchpoint_without_mention and adjusted to use
2760 init_raw_breakpoint.
2761 (create_catchpoint_without_mention): Adjust.
2762
2763 2011-06-22 Tom Tromey <tromey@redhat.com>
2764
2765 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2766 argument of 0 specially.
2767
2768 2011-06-22 Yao Qi <yao@codesourcery.com>
2769
2770 * infrun.c (handle_inferior_event): Remove write-only local variable
2771 `sw_single_step_trap_p'.
2772
2773 2011-06-20 Tom Tromey <tromey@redhat.com>
2774
2775 * symtab.c (lookup_language_this): End loop if block is NULL.
2776
2777 2011-06-17 Tom Tromey <tromey@redhat.com>
2778
2779 * valops.c (value_of_this): Use lookup_language_this.
2780 * symtab.h (lookup_language_this): Declare.
2781 * symtab.c (lookup_language_this): New function.
2782 (lookup_symbol_aux): Use lookup_language_this.
2783 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2784
2785 2011-06-17 Tom Tromey <tromey@redhat.com>
2786
2787 * value.h (value_of_this): Update.
2788 (value_of_local): Remove.
2789 * valops.c (value_of_this): Rename from value_of_local. Change
2790 parameters.
2791 * p-exp.y (exp): Update.
2792 (variable): Likewise.
2793 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2794
2795 2011-06-17 Tom Tromey <tromey@redhat.com>
2796
2797 * valops.c (value_of_local): Complain if NAME is NULL.
2798 * std-operator.def (OP_OBJC_SELF): Remove.
2799 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2800 * objc-exp.y (name_not_typename): Use OP_THIS.
2801 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2802 name for "this".
2803 <OP_OBJC_SELF>: Remove.
2804 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2805
2806 2011-06-16 Tristan Gingold <gingold@adacore.com>
2807
2808 * python/py-events.h (gdb_py_events): Make it extern.
2809 * python/py-evtregistry.c (gdb_py_events): Declare.
2810
2811 2011-06-16 Hui Zhu <teawater@gmail.com>
2812
2813 * remote.c (remote_trace_set_readonly_regions): Add check for
2814 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2815 output warning.
2816
2817 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
2818
2819 * arm-linux-tdep.c: Include "auxv.h".
2820 (AT_HWCAP): Define.
2821 (ARM_LINUX_SIZEOF_VFP): Define.
2822 (arm_linux_supply_vfp): New function.
2823 (arm_linux_collect_vfp): Likewise.
2824 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2825 (arm_linux_fpa_regset_sections): New variable.
2826 (arm_linux_vfp_regset_sections): Likewise.
2827 (arm_linux_core_read_description): New function.
2828 (arm_linux_init_abi): Install arm_linux_core_read_description and
2829 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2830 appropriate for the architecture.
2831 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2832 (tdesc_arm_with_m): Declare.
2833 (tdesc_arm_with_iwmmxt): Likewise.
2834 (tdesc_arm_with_vfpv2): Likewise.
2835 (tdesc_arm_with_vfpv3): Likewise.
2836 (tdesc_arm_with_neon): Likewise.
2837 * arm-linux-nat.c: Move features/*.c includes ...
2838 * arm-tdep.c: ... here.
2839 * arm-linux-nat.c (arm_linux_read_description): Move initializing
2840 target description data structures ...
2841 * arm-tdep.c (_initialize_arm_tdep): ... here.
2842 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2843 HWCAP_VFPv3D16): Move definitions ...
2844 * arm-linux-tdep.h: ... here.
2845
2846 2011-06-15 Hui Zhu <teawater@gmail.com>
2847
2848 * remote.c (remote_trace_set_readonly_regions): Add a check for
2849 target_buf_size.
2850
2851 2011-06-14 Tom Tromey <tromey@redhat.com>
2852
2853 * coffread.c (coffread_objfile): Rename from current_objfile.
2854 * dbxread.c (dbxread_objfile): Rename from current_objfile.
2855 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2856
2857 2011-06-14 Tom Tromey <tromey@redhat.com>
2858
2859 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2860 (class_symtab): Remove.
2861 (jv_dynamics_progspace_key): New global.
2862 (jv_per_objfile_free): Reset program space data. Update assert.
2863 Don't clear globals.
2864 (get_dynamics_objfile): Use and set program space data.
2865 (get_java_class_symtab): Use get_dynamics_objfile.
2866 (add_class_symbol): Likewise.
2867 (java_link_class_type): Likewise.
2868 (java_object_type, jv_clear_object_type, set_java_object_type):
2869 Remove.
2870 (get_java_object_type): Update. Don't cache result.
2871 (is_object_type): Don't call set_java_object_type.
2872 (_initialize_java_language): Don't set jv_type_objfile_data_key;
2873 initialize jv_dynamics_progspace_key.
2874
2875 2011-06-14 Tom Tromey <tromey@redhat.com>
2876
2877 * symtab.h (current_objfile): Don't declare.
2878 * objfiles.h (current_objfile): Don't declare.
2879 * objfiles.c (current_objfile): Remove.
2880 * mdebugread.c (current_objfile): New file-scope global.
2881 * dbxread.c (current_objfile): New file-scope global.
2882 * coffread.c (current_objfile): New file-scope global.
2883
2884 2011-06-13 Pedro Alves <pedro@codesourcery.com>
2885
2886 * top.h (line): Rename to ...
2887 (saved_command_line): ... this.
2888 (linesize): Rename to ...
2889 (saved_command_line_size): ... this.
2890 * top.c (line): Rename to ...
2891 (saved_command_line): ... this.
2892 (linesize): Rename to ...
2893 (saved_command_line_size): ... this.
2894 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2895 * event-top.c (command_line_handler): Adjust.
2896 * main.c (captured_main): Adjust.
2897
2898 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2899
2900 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
2901 get_frame_func instead of get_frame_pc to determine the code
2902 address used to construct the frame ID.
2903 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2904 (i386_epilogue_frame_this_id): Likewise.
2905 (i386_epilogue_frame_prev_register): New function.
2906 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2907 (i386_stack_tramp_frame_sniffer): Fix coding style.
2908 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2909 (i386_gdbarch_init): Fix comments.
2910
2911 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2912
2913 * i386-tdep.c (i386_match_insn_block): Use length of the proper
2914 instruction when walking back through the instruction stream.
2915
2916 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2917
2918 * symtab.c (output_partial_symbol_filename): Exchange the filename and
2919 fullname parameters order.
2920
2921 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2922
2923 Code cleanup.
2924 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2925 for fun.
2926 * psymtab.c (map_symbol_filenames_psymtab)
2927 (map_partial_symbol_filenames): Likewise.
2928 * psymtab.h: Include symfile.h.
2929 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2930 * symfile.h (symbol_filename_ftype): New.
2931 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2932 map_symbol_filenames, clarify more the naming in comment.
2933
2934 2011-06-07 Doug Evans <dje@google.com>
2935
2936 * cc-with-index.sh: Fix typos in comment.
2937 Look for ../../gdb, for fullname.exp.
2938
2939 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2940 Pedro Alves <pedro@codesourcery.com>
2941
2942 * cli/cli-cmds.c (shell_escape): Use waitpid.
2943 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2944
2945 2011-06-07 Tristan Gingold <gingold@adacore.com>
2946
2947 * xcoffread.c (dwarf2_xcoff_names): New variable.
2948 (aix_process_linenos): Add a guard.
2949 (xcoff_symfile_finish): Free dwarf2.
2950 (xcoff_initial_scan): Add dwarf2 support.
2951
2952 2011-06-06 Pedro Alves <pedro@codesourcery.com>
2953
2954 * infcall.c (run_inferior_call): Don't mask async. Instead force
2955 a synchronous wait, if the target can async.
2956
2957 * target.h (struct target_ops): Delete to_async_mask.
2958 (target_async_mask): Delete.
2959 * target.c (update_current_target): Delete references to to_async_mask.
2960 * linux-nat.c (linux_nat_async_mask_value): Delete.
2961 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2962 to linux_nat_async_mask_value.
2963 (linux_nat_async_mask): Delete.
2964 (linux_nat_async, linux_nat_close): Remove references to
2965 linux_nat_async_mask_value.
2966 * record.c (record_async_mask_value): Delete.
2967 (record_async): Remove references to record_async_mask_value.
2968 (record_async_mask): Delete.
2969 (record_can_async_p, record_is_async_p): Remove references to
2970 record_async_mask_value.
2971 (init_record_ops, init_record_core_ops): Remove references to
2972 record_async_mask.
2973 * remote.c (remote_async_mask_value): Delete.
2974 (init_remote_ops): Remove reference to remote_async_mask.
2975 (remote_can_async_p, remote_is_async_p): Remove references to
2976 remote_async_mask_value.
2977 (remote_async): Remove references to remote_async_mask_value.
2978 (remote_async_mask): Delete.
2979
2980 * infrun.c (fetch_inferior_event): Don't claim registers changed
2981 if the current thread is already not executing.
2982
2983 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2984
2985 From Stephen Kitt <steve@sk2.org>
2986 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2987 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2988
2989 2011-06-03 Joel Brobecker <brobecker@adacore.com>
2990
2991 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2992 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2993
2994 2011-06-03 Tom Tromey <tromey@redhat.com>
2995
2996 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2997 code fields.
2998 * python/py-exitedevent.c (create_exited_event_object): Change
2999 type of 'exit_code'. Optionally add exit_code attribute.
3000 (emit_exited_event): Change type of 'exit_code'.
3001 * python/py-event.h (emit_exited_event): Update.
3002 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
3003 * infrun.c (handle_inferior_event): Set exit code fields on
3004 inferior.
3005 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
3006 fields.
3007 * inferior.c (exit_inferior_1): Initialize new fields.
3008
3009 2011-06-03 Tom Tromey <tromey@redhat.com>
3010
3011 * dwarf2expr.c (get_signed_type): New function.
3012 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
3013
3014 2011-06-02 Keith Seitz <keiths@redhat.com>
3015
3016 * objc-lang.c (find_methods): Increment objfile_csym earlier.
3017
3018 2011-06-02 Pedro Alves <pedro@codesourcery.com>
3019
3020 * top.h (simplified_command_loop): Delete declaration.
3021
3022 2011-06-01 Mike Frysinger <vapier@gentoo.org>
3023
3024 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
3025 gdb_sysroot to the "len" variable. Append both to "arg_buf".
3026
3027 2011-06-01 Yao Qi <yao@codesourcery.com>
3028
3029 * objfiles.h (obj_section_addr): Update reference to objfile from
3030 `abfd' to `obfd'.
3031 (obj_section_endaddr): Likewise.
3032
3033 2011-06-01 Daniel Jacobowitz <drow@false.org>
3034
3035 * MAINTAINERS: Update my email address and affiliation. Also
3036 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
3037
3038 2010-05-31 Keith Seitz <keiths@redhat.com>
3039
3040 PR c++/12750
3041 * linespec.c (get_search_block): New function.
3042 (find_methods): Add FILE_SYMTATB parameter and use it and
3043 get_search_block to pass an appropriate block to
3044 lookup_symbol_in_namespace.
3045 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
3046 Check if *ARGPTR starts with a filename first.
3047 If it does, call locate_first_half again to locate the next
3048 "first half" of the linespec.
3049 Pass FILE_SYMTATB to decode_objc and decode_compound.
3050 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
3051 (locate_first_half): Stop on the first colon seen.
3052 (decode_compound): Add FILE_SYMTAB parameter.
3053 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
3054 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
3055 get_search_block with lookup_symbol.
3056 (find_method): Add FILE_SYMTAB parameter and pass it to
3057 find_methods.
3058 (decode_objc): Use get_search_block.
3059
3060 2010-05-31 Keith Seitz <keiths@redhat.com>
3061
3062 PR symtab/12704
3063 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
3064 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
3065 and CP_ANONYMOUS_NAMESPACE_LEN.
3066 (cp_is_anonymous): Likewise.
3067 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
3068 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
3069 * dwarf2read.c (namespace_name): Likewise.
3070 (fixup_partial_die): Likewise.
3071 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
3072 seen in the input, keep it.
3073
3074 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3075
3076 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
3077 * inf-loop.h (inferior_event_handler_wrapper): Delete.
3078 * inf-loop.c (inferior_event_handler_wrapper): Delete.
3079 (inferior_event_handler): Don't handle INF_QUIT_REQ.
3080 * remote.c (_initialize_remote): Register
3081 async_remote_interrupt_twice directly as
3082 sigint_remote_twice_token event.
3083
3084 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3085
3086 * target.h (enum inferior_event_type): Delete INF_ERROR.
3087 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
3088
3089 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3090
3091 * interps.c (interp_set): Don't cancel continuations.
3092
3093 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3094
3095 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
3096
3097 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3098
3099 * continuations.h (continuation_ftype): Add `err' parameter.
3100 Document parameters.
3101 (do_all_continuations, do_all_continuations_thread)
3102 (do_all_intermediate_continuations)
3103 (do_all_intermediate_continuations_thread)
3104 (do_all_inferior_continuations): Add `err' parameter.
3105 * continuations.c (do_my_continuations_1, do_my_continuations)
3106 (do_all_inferior_continuations, do_all_continuations_ptid)
3107 (do_all_continuations_thread_callback)
3108 (do_all_continuations_thread, do_all_continuations)
3109 (do_all_intermediate_continuations_thread_callback)
3110 (do_all_intermediate_continuations_thread)
3111 (do_all_intermediate_continuations): Add `err' parameter, and pass
3112 it down all the way to the continuations proper.
3113 * inf-loop.c (inferior_event_handler): If fetching an inferior
3114 event throws an error, don't pop the target, and still call the
3115 continuations, but with `err' set. Adjust all other continuation
3116 calls.
3117 * breakpoint.c (until_break_command_continuation): Add `err'
3118 parameter.
3119 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
3120 issue another step if `err' is set.
3121 (struct until_next_continuation_args): New.
3122 (until_next_continuation): Add `err' parameter. Adjust.
3123 (until_next_command): Adjust.
3124 (struct finish_command_continuation_args): Add `thread' field.
3125 (finish_command_continuation): Add `err' parameter. Handle it.
3126 (finish_forward): Adjust.
3127 (attach_command_continuation): Add `err' parameter. Handle it.
3128 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
3129 cancel the continuations.
3130 * interps.c (interp_set): Adjust to cancel the continuations.
3131 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
3132 continuations rather than discarding.
3133 (free_thread): Don't clear thread inferior resources here.
3134 (delete_thread_1): Do it here instead. And do it before removing
3135 the thread from the threads list. Tag the thread as exited before
3136 clearing thread inferior resources.
3137
3138 2011-05-30 Joel Brobecker <brobecker@adacore.com>
3139
3140 * infcall.c (call_function_by_hand): Rephrase error message.
3141
3142 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3143
3144 * defs.h (struct thread_info, struct inferior): Delete forward
3145 declarations.
3146 * breakpoint.h (struct thread_info): New forward declaration.
3147 * observer.sh (struct inferior): New forward declaration.
3148 * python/python-internal.h (struct inferior): New forward
3149 declaration.
3150
3151 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3152
3153 * defs.h (struct continuation, continuation_ftype)
3154 (continuation_free_arg_ftype, add_continuation)
3155 (do_all_continuations, do_all_continuations_thread)
3156 (discard_all_continuations, discard_all_continuations_thread)
3157 (add_intermediate_continuation, do_all_intermediate_continuations)
3158 (do_all_intermediate_continuations_thread)
3159 (discard_all_intermediate_continuations)
3160 (discard_all_intermediate_continuations_thread)
3161 (add_inferior_continuation, do_all_inferior_continuations)
3162 (discard_all_inferior_continuations): Move to ...
3163 * continuations.h: ... this new file.
3164 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
3165 infcmd.c, inferior.c, infrun.c, interps.c: Include
3166 continuations.h.
3167
3168 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3169 Doug Evans <dje@google.com>
3170
3171 Fix PR 10970, PR 12702.
3172 * linux-nat.c (linux_lwp_is_zombie): New function.
3173 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
3174 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
3175
3176 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3177
3178 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
3179 typedefs.
3180 (add_continuation, add_intermediate_continuation)
3181 (add_inferior_continuation): Use them.
3182 * continuations.c (struct continuation): Use them.
3183 (make_continuation_ftype): Delete.
3184 (make_continuation, add_inferior_continuation, add_continuation)
3185 (add_intermediate_continuation): Use continuation_ftype and
3186 continuation_free_arg_ftype. Rename parameters to shorter names.
3187
3188 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3189
3190 * continuations.c (make_continuation): Make it return void.
3191 (do_my_continuations): Rename to ...
3192 (do_my_continuations_1): ... this. Remove old_chain parameter and
3193 adjust.
3194 (do_my_continuations): New.
3195 (discard_my_continuations): Rename to ...
3196 (discard_my_continuations_1): ... this. Remove old_chain
3197 parameter and adjust.
3198 (discard_my_continuations): New.
3199 (add_inferior_continuation): Simplify.
3200 (do_all_inferior_continuations): Reimplement on top
3201 do_my_continuations.
3202 (discard_all_inferior_continuations): Simplify.
3203 (add_continuation): Simplify.
3204 (do_all_continuations_ptid): Simplify.
3205 (discard_all_continuations_thread_callback): Simplify.
3206 (add_intermediate_continuation): Simplify.
3207 (discard_all_intermediate_continuations_thread_callback):
3208 Simplify.
3209
3210 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3211
3212 * utils.c (struct continuation, add_continuation)
3213 (add_inferior_continuation)
3214 (do_all_inferior_continuations, discard_all_inferior_continuations)
3215 (restore_thread_cleanup, do_all_continuations_ptid)
3216 (do_all_continuations_thread_callback)
3217 (do_all_continuations_thread, do_all_continuations)
3218 (discard_all_continuations_thread_callback)
3219 (discard_all_continuations_thread, discard_all_continuations)
3220 (add_intermediate_continuation)
3221 (do_all_intermediate_continuations_thread_callback)
3222 (do_all_intermediate_continuations_thread)
3223 (do_all_intermediate_continuations)
3224 (discard_all_intermediate_continuations_thread_callback)
3225 (discard_all_intermediate_continuations_thread)
3226 (discard_all_intermediate_continuations): Move to ...
3227 * continuations.c: ... this new file, and adjust to no longer
3228 implement continuations on top of cleanups.
3229 * Makefile.in (SFILES): Add continuations.c.
3230 (COMMON_OBS): Add continuations.o.
3231
3232 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3233
3234 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
3235 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
3236 Internal error on invalid values.
3237 * reverse.c: Don't handle EXEC_ERROR.
3238 * mi/mi-main.c: Don't handle EXEC_ERROR.
3239
3240 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3241
3242 * record.c: Include event-loop.h, inf-loop.h.
3243 (record_beneath_to_async): New global.
3244 (tmp_to_async): New global.
3245 (record_async_inferior_event_token): New global.
3246 (record_open_1): Don't error out if async is enabled.
3247 (record_open): Handle to_async. Create an async event source in
3248 the event loop.
3249 (record_close): Delete the async event source.
3250 (record_resumed): New global.
3251 (record_execution_dir): New global.
3252 (record_resume, record_core_resume): Set them. Register the
3253 target on the event loop.
3254 (record_wait): Rename to ...
3255 (record_wait_1): ... this. Add more debug output. Handle
3256 TARGET_WNOHANG, and the target beneath returning
3257 TARGET_WAITKIND_IGNORE.
3258 (record_wait): Reimplement on top of record_wait_1.
3259 (record_async_mask_value): New global.
3260 (record_async, record_async_mask, record_can_async_p)
3261 (record_is_async_p, record_execution_direction): New functions.
3262 (init_record_ops, init_record_core_ops): Install new methods.
3263 * infrun.c (fetch_inferior_event): Temporarily switch the global
3264 execution direction to the direction the target was going.
3265 (execution_direction): Change type to int.
3266 * target.c (default_execution_direction): New function.
3267 (update_current_target): Inherit and de_fault
3268 to_execution_direction.
3269 * target.h (struct target_ops) <to_execution_direction>: New
3270 field.
3271 (target_execution_direction): New macro.
3272 * inferior.h (execution_direction): Change type to int.
3273
3274 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3275
3276 * infcall.c (call_function_by_hand): Don't allow calling functions
3277 in reverse execution mode.
3278
3279 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3280
3281 * infcmd.c (finish_command): Allow async finish in reverse.
3282
3283 2011-05-26 Yao Qi <yao@codesourcery.com>
3284
3285 * gdb_thread_db.h: Delete. Move to ...
3286 * common/gdb_thread_db.h: ... here.
3287
3288 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3289
3290 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
3291 function's entry point instead of a manually managed momentary
3292 breakpoint, and only ever issue one proceed call.
3293 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
3294 doing a reverse-finish, switch to stepi mode, to do another step.
3295 (insert_step_resume_breakpoint_at_sal): Make public.
3296 (normal_stop): No need to save function value return registers if
3297 going reverse.
3298 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
3299
3300 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3301
3302 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
3303 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
3304 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
3305 at the end.
3306 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
3307 step-resume breakpoints.
3308 (print_it_typical): Handle bp_hp_step_resume.
3309 (bpstat_what): Ditto.
3310 (bptype_string): Ditto.
3311 (print_one_breakpoint_location): Ditto.
3312 (allocate_bp_location): Ditto.
3313 (mention): Ditto.
3314 (breakpoint_re_set_one): Ditto.
3315 * infrun.c (handle_inferior_event): Adjust. Split
3316 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
3317 BPSTAT_WHAT_HP_STEP_RESUME.
3318 (insert_step_resume_breakpoint_at_sal): Rename to ...
3319 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
3320 parameter. Handle it.
3321 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
3322 insert_step_resume_breakpoint_at_sal_1.
3323 (insert_step_resume_breakpoint_at_frame): Rename to ...
3324 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
3325 set a high-priority step-resume breakpoint.
3326 (insert_step_resume_breakpoint_at_frame): Adjust comment.
3327 (insert_step_resume_breakpoint_at_caller): Ditto.
3328
3329 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3330
3331 * breakpoint.c (iterate_over_related_breakpoints): New.
3332 (do_map_delete_breakpoint): New.
3333 (delete_command): Pass do_map_delete_breakpoint to
3334 map_breakpoint_numbers.
3335 (do_disable_breakpoint): New.
3336 (do_map_disable_breakpoint): Iterate over the breakpoint's related
3337 breakpoints.
3338 (do_enable_breakpoint): Rename to ...
3339 (enable_breakpoint_disp): ... this.
3340 (enable_breakpoint): Adjust.
3341 (do_enable_breakpoint): New.
3342 (enable_once_breakpoint): Delete.
3343 (do_map_enable_breakpoint): New.
3344 (do_map_enable_once_breakpoint): New.
3345 (enable_once_command, enable_delete_command)
3346 (delete_trace_command): Iterate over the breakpoint's related
3347 breakpoints.
3348
3349 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3350
3351 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
3352 for ALPHA_ZERO_REGNUM.
3353 (alpha_supply_int_regs): Explicitly supply zero as the value for
3354 ALPHA_ZERO_REGNUM in the register cache.
3355 * alpha-nat.c (fetch_osf_core_registers): Ditto.
3356
3357 2011-05-26 Yao Qi <yao@codesourcery.com>
3358
3359 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
3360
3361 2011-05-26 Tristan Gingold <gingold@adacore.com>
3362
3363 * symfile.h (struct dwarf2_section_names): New type.
3364 (struct dwarf2_debug_sections): New type.
3365 (dwarf2_has_info): Add parameter.
3366 * dwarf2read.c (dwarf2_elf_names): New variable.
3367 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
3368 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
3369 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
3370 (dwarf2_has_info): Add names parameter. Pass names
3371 to dwarf2_locate_sections.
3372 (section_is_p): Rewrite using the names parameter.
3373 (dwarf2_locate_sections): Use section names from the names parameter.
3374 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
3375 * elfread.c (read_psyms): Ditto.
3376 * machoread.c (macho_symfile_read): Ditto.
3377
3378 2011-05-25 Andreas Schwab <schwab@redhat.com>
3379
3380 PR gdb/8677
3381 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
3382
3383 2011-05-24 Keith Seitz <keiths@redhat.com>
3384
3385 PR breakpoint/12803
3386 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
3387 (decode_compound): Unconditionally call keep_name_info.
3388
3389 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3390
3391 * breakpoint.c (watchpoint_check): If the watchpoint went out of
3392 scope, clear its command list.
3393 (map_breakpoint_numbers): Don't walk the related breakpoints list
3394 of each breakpoint.
3395
3396 2011-05-24 Tom Tromey <tromey@redhat.com>
3397
3398 * MAINTAINERS: Move Jim Blandy to past maintainers.
3399
3400 2011-05-24 Tristan Gingold <gingold@adacore.com>
3401
3402 * symfile.h (enum dwarf2_section_enum): New type.
3403 (dwarf2_get_section_info): New prototype.
3404 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
3405 section_name by sect. Use a switch to select the info.
3406 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
3407 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
3408
3409 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3410
3411 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
3412 shared library event breakpoint if there's no execution.
3413
3414 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
3415
3416 * breakpont.c (remove_hw_watchpoints): Remove unused function.
3417 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
3418
3419 2011-05-23 Tom Tromey <tromey@redhat.com>
3420
3421 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
3422 NULL.
3423
3424 2011-05-23 Doug Evans <dje@google.com>
3425
3426 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
3427 entry for RuntimeError to doc string.
3428
3429 2011-05-23 Jerome Guitton <guitton@adacore.com>
3430
3431 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
3432 sequence for probing loops.
3433
3434 2011-05-23 Pedro Alves <pedro@codesourcery.com>
3435
3436 * infrun.c (user_visible_resume_ptid): Fix typos in describing
3437 comment.
3438
3439 2011-05-21 Mark Kettenis <kettenis@gnu.org>
3440
3441 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
3442 zero as the value for %g0 in the register cache.
3443 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
3444 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
3445
3446 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3447
3448 * infrun.c (proceed): Set previous_inferior_ptid here.
3449 (init_wait_for_inferior): Initialize previous_inferior_ptid from
3450 inferior_ptid, not null_ptid.
3451 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
3452 (fetch_inferior_event): Nor here.
3453
3454 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3455
3456 * inf-loop.c (inferior_event_handler): Only output a message if
3457 verbose.
3458
3459 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
3460
3461 * MAINTAINERS: Update my e-mail address.
3462
3463 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3464
3465 * infrun.c (proceed): Switch the inferior event loop to
3466 INF_EXEC_COMPLETE if the target refused to resume from a
3467 vfork/fork.
3468
3469 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3470
3471 * infcmd.c: Include "inf-loop.h".
3472 (step_once): When stepping into an inline subroutine, pretend the
3473 target has run. If the target can async, switch the inferior
3474 event loop to INF_EXEC_COMPLETE.
3475 * inferior.h (user_visible_resume_ptid): Declare.
3476 * infrun.c (user_visible_resume_ptid): New function, factored out
3477 from `resume'.
3478 (resume): Use it.
3479 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
3480 that the current thread is running. Merge async and sync
3481 branches.
3482
3483 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3484
3485 * infcmd.c (step_1): Simplify synchronous case.
3486
3487 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3488
3489 * tracepoint.c: Include exceptions.h.
3490 (TFILE_PID): Move higher in file.
3491 (tfile_open): Delay pushing the tfile target until we're assured
3492 the tfile header is present in the file. Wrap reading the initial
3493 newline-terminated lines in TRY_CATCH. Pop the target if the
3494 initial setup failed. Add the tfile's thread immediately
3495 aftwards, before any non-essential setup. Don't skip
3496 post_create_inferior if there are no traceframes present in the
3497 file.
3498 (tfile_close): Remove redundant check for null before xfree call.
3499 (tfile_thread_alive): New function.
3500 (init_tfile_ops): Register it as to_thread_alive callback.
3501
3502 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3503
3504 * tracepoint.c (tfile_open): Delete #if 0'd code.
3505
3506 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3507
3508 Fix -readnow for -gdwarf-4 unused type units.
3509 * dwarf2read.c (struct signatured_type): Remove the field offset.
3510 (create_signatured_type_table_from_index): Remove its initialization.
3511 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
3512 instead. Add a complaint call.
3513 (process_psymtab_comp_unit): Change assignment to gdb_assert.
3514 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
3515 (lookup_signatured_type_at_offset, read_signatured_type)
3516 (write_one_signatured_type): Update the field for per_cu.
3517
3518 2011-05-19 Tom Tromey <tromey@redhat.com>
3519
3520 * python/py-inferior.c (python_inferior_exit): Use
3521 target_gdbarch.
3522 (python_on_resume): Likewise.
3523
3524 2011-05-19 Matt Rice <ratmice@gmail.com>
3525
3526 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
3527
3528 2011-05-19 Hui Zhu <teawater@gmail.com>
3529
3530 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
3531
3532 2011-05-19 Hui Zhu <teawater@gmail.com>
3533
3534 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
3535
3536 2011-05-18 Tom Tromey <tromey@redhat.com>
3537
3538 * dwarf2read.c (dwarf2_add_field): Constify.
3539 * value.c (value_static_field): Constify.
3540 * gdbtypes.h (struct main_type) <field.field_location.physname>:
3541 Now const.
3542 * ax-gdb.c (gen_static_field): Constify
3543
3544 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3545
3546 * linux-nat.c (kill_callback): Use SIGKILL first.
3547
3548 2011-05-18 Joel Brobecker <brobecker@adacore.com>
3549
3550 * ada-lang.c (print_it_exception): Avoid use of sprintf.
3551
3552 2011-05-18 Tom Tromey <tromey@redhat.com>
3553
3554 * value.c (value_fn_field): Constify.
3555 * symtab.c (gdb_mangle_name): Constify.
3556 * stabsread.c (update_method_name_from_physname): Make 'physname'
3557 argument const.
3558 * p-typeprint.c (pascal_type_print_method_args): Make arguments
3559 const. Use explicit fputc_filtered loop.
3560 (pascal_type_print_base): Constify.
3561 * p-lang.h (pascal_type_print_method_args): Update.
3562 * linespec.c (add_matching_methods): Constify.
3563 (add_constructors): Likewise.
3564 * jv-typeprint.c (java_type_print_base): Constify.
3565 * gdbtypes.h (struct cplus_struct_type)
3566 <fn_fieldlist.fn_field.physname>: Now const.
3567 * dwarf2read.c (compute_delayed_physnames): Constify.
3568 (dwarf2_add_member_fn): Likewise.
3569 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
3570
3571 2011-05-18 Pedro Alves <pedro@codesourcery.com>
3572
3573 * infrun.c (resume): Mention which is the current thread, and its
3574 current PC in debug output.
3575 (prepare_to_proceed): Mention the thread switching in debug
3576 output.
3577
3578 2011-05-18 Tom Tromey <tromey@redhat.com>
3579
3580 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
3581 path check. Use xmalloc and cleanups.
3582 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
3583
3584 2011-05-17 Tom Tromey <tromey@redhat.com>
3585
3586 * cp-valprint.c (cp_print_value_fields): Catch errors from
3587 value_static_field.
3588
3589 2011-05-17 Tom Tromey <tromey@redhat.com>
3590
3591 * dwarf2read.c (dwarf2_get_die_type): Call
3592 get_die_type_at_offset.
3593 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
3594 get_base_type function.
3595
3596 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
3597
3598 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
3599 trap_expected.
3600
3601 2011-05-16 Doug Evans <dje@google.com>
3602
3603 * python/py-auto-load.c (source_section_scripts): Mention objfile
3604 name in warning.
3605
3606 2011-05-15 Doug Evans <dje@google.com>
3607
3608 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
3609 (try_thread_db_load_from_pdir): Call it. If unable to find
3610 libthread_db in directory of libpthread, see if we're looking at
3611 the separate-debug-info copy.
3612
3613 * python/py-autoload.c (print_script): Print "Missing" instead of
3614 "No" for missing scripts.
3615 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
3616
3617 2011-05-13 Doug Evans <dje@google.com>
3618
3619 * ui-file.c (stdio_file_write_async_safe): Add comment.
3620
3621 2011-05-14 Hui Zhu <teawater@gmail.com>
3622
3623 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
3624
3625 2011-05-13 Doug Evans <dje@google.com>
3626
3627 Support $pdir and $sdir in libthread-db-search-path.
3628 * NEWS: Mention $sdir,$pdir.
3629 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
3630 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
3631 (try_thread_db_load_from_sdir): New function.
3632 (try_thread_db_load_from_dir): New function.
3633 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
3634 system directories if search of libthread-db-search-path fails,
3635 that is now done via $sdir.
3636 (has_libpthread): New function.
3637 (thread_db_load): Remove search for libthread_db in directory of
3638 libpthread, that is now done via $pdir.
3639
3640 * NEWS: Mention "info auto-load-scripts".
3641 * python/py-auto-load.c (struct auto_load_pspace_info): New member
3642 script_not_found_warning_printed.
3643 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
3644 all callers updated. Initialize script_not_found_warning_printed.
3645 (get_auto_load_pspace_data_for_loading): New function.
3646 (maybe_add_script): New function.
3647 (source_section_scripts): Simplify. Only print one warning regardless
3648 of the number of auto-load scripts not found.
3649 (clear_section_scripts): Clear script_not_found_warning_printed.
3650 (auto_load_objfile_script): Record script in hash table.
3651 (count_matching_scripts): New function.
3652 (maybe_print_script): Renamed from maybe_print_section_script, all
3653 callers updated. Rewrite to use ui_out_*.
3654 (info_auto_load_scripts): Renamed from
3655 maintenance_print_section_scripts, all callers updated.
3656 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
3657 renamed as "info auto-load-scripts".
3658
3659 2011-05-13 Tom Tromey <tromey@redhat.com>
3660
3661 * dwarf2expr.c (read_uleb128): Cast intermediate result.
3662 (read_sleb128): Likewise.
3663
3664 2011-05-13 Tom Tromey <tromey@redhat.com>
3665
3666 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
3667 offset display.
3668
3669 2011-05-13 Doug Evans <dje@google.com>
3670
3671 * linux-nat.c (debug_linux_nat_async): Delete.
3672 Replace all references to use debug_linux_nat instead.
3673 (show_debug_linux_nat_async): Delete.
3674 (sigchld_handler): Call ui_file_write_async_safe instead of
3675 fprintf_unfiltered.
3676 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
3677 * ui-file.c (struct ui_file): New member to_write_async_safe.
3678 (null_file_write_async_safe): New function.
3679 (ui_file_write_async_safe): New function.
3680 (set_ui_file_write_async_safe): New function.
3681 (ui_file_new): Initialize to_write_async_safe.
3682 (stdio_file_write_async_safe): New function.
3683 (struct stdio_file): New member fd.
3684 (stdio_file_new): Initialize to_write_async_safe, fd.
3685 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
3686 fileno.
3687 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
3688 (set_ui_file_write_async_safe): Declare.
3689 (ui_file_write_async_safe): Declare.
3690
3691 2011-05-13 Tom Tromey <tromey@redhat.com>
3692
3693 * utils.c (do_value_free): New function.
3694 (make_cleanup_value_free): Likewise.
3695 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
3696 freeing correctly.
3697 (dwarf2_loc_desc_needs_frame): Call
3698 make_cleanup_value_free_to_mark.
3699 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
3700 * dwarf2expr.c (free_dwarf_expr_context): Don't call
3701 value_free_to_mark.
3702 (new_dwarf_expr_context): Don't call value_mark.
3703 * dwarf2-frame.c (execute_stack_op): Call
3704 make_cleanup_value_free_to_mark.
3705 * defs.h (make_cleanup_value_free): Declare.
3706
3707 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3708
3709 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3710 prepare_execute_command.
3711 * top.c (prepare_execute_command): Return cleanup.
3712 (execute_command): Use cleanup from prepare_execute_command.
3713 * top.h (prepare_execute_command): Change prototype to return
3714 cleanup.
3715 * defs.h (struct value): Add opaque declaration.
3716 (make_cleanup_value_free_to_mark): Add prototype.
3717 * utils.c (do_value_free_to_mark): New function.
3718 (make_cleanup_value_free_to_mark): Likewise.
3719
3720 2011-05-12 Tom Tromey <tromey@redhat.com>
3721
3722 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3723 cast left-hand-side to unsigned.
3724
3725 2011-05-12 Tom Tromey <tromey@redhat.com>
3726
3727 PR gdb/12617:
3728 * value.h (value_from_contents): Declare.
3729 * value.c (value_from_contents): New function.
3730 * dwarf2read.c (dwarf_stack_op_name): Add new values.
3731 (dwarf2_get_die_type): New function.
3732 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3733 (allocate_piece_closure): Acquire reference to values.
3734 (read_pieced_value): Update for value-based expressions.
3735 (write_pieced_value): Likewise.
3736 (free_pieced_value_closure): Call value_free as needed.
3737 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3738 Update for value-based expressions.
3739 * dwarf2loc.h (dwarf2_get_die_type): Declare.
3740 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3741 <get_base_type>: New field.
3742 (struct dwarf_expr_piece) <v.value>: Change type.
3743 <v.regno>: New field.
3744 (struct dwarf_expr_context) <mark>: New field.
3745 (dwarf_expr_piece, dwarf_expr_fetch): Update.
3746 (dwarf_expr_pop, dwarf_expr_push): Remove.
3747 (dwarf_expr_push_address): Declare.
3748 * dwarf2expr.c (dwarf_arch_cookie): New global.
3749 (struct dwarf_gdbarch_types): New.
3750 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3751 functions.
3752 (dwarf_expr_push): Change type of 'value' argument. Update. Now
3753 static.
3754 (dwarf_expr_push_address): New function.
3755 (dwarf_expr_pop): Now static.
3756 (dwarf_expr_fetch): Change return type.
3757 (dwarf_require_integral): New function.
3758 (dwarf_expr_fetch): Simplify.
3759 (add_piece): Update.
3760 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3761 functions.
3762 (execute_stack_op) <sign_ext>: Remove.
3763 Use values for DWARF stack.
3764 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3765 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3766 New cases.
3767 (_initialize_dwarf2expr): New function.
3768 (add_piece): Update.
3769 (new_dwarf_expr_context): Set new field.
3770 (free_dwarf_expr_context): Call value_free_to_mark.
3771 * dwarf2-frame.c (no_base_type): New function.
3772 (execute_stack_op): Set get_base_type field. Update.
3773
3774 2011-05-12 Tom Tromey <tromey@redhat.com>
3775
3776 * dwarf2read.c (read_common_block): Fix formatting.
3777
3778 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
3779
3780 * breakpoint.c (disable_breakpoint): Disable all locations
3781 associated with a tracepoint on target if a trace experiment is
3782 running.
3783 (disable_command): Disable a specific tracepoint location on target if
3784 a trace experiment is running.
3785 (do_enable_breakpoint): Enable all locations associated with a
3786 tracepoint on target if a trace experiment is running.
3787 (enable_command) Enable a specific tracepoint location on target if a
3788 trace experiment is running.
3789 * target.c (update_current_target): Add INHERIT and de_fault clauses for
3790 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3791 to_disable_tracepoint.
3792 * target.h: Add declaration of struct bp_location.
3793 (struct target_ops): Add new functions
3794 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3795 to_disable_tracepoint to target operations.
3796 (target_supports_enable_disable_tracepoint): New macro.
3797 (target_enable_tracepoint): New macro.
3798 (target_disable_tracepoint): New macro.
3799 * remote.c (struct remote_state): Add new field.
3800 (remote_enable_disable_tracepoint_feature): New.
3801 (remote_protocol_features): Add new entry.
3802 (remote_supports_enable_disable_tracepoint): New.
3803 (remote_enable_tracepoint): New.
3804 (remote_disable_tracepoint): New.
3805 (init_remote_ops): Add remote_enable_tracepoint,
3806 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3807 to remote operations.
3808 * tracepoint.c (start_tracing): Allow tracing to start without any
3809 tracepoints enabled with just a warning if they can be re-enabled
3810 later.
3811 * NEWS: Add news item for the new behaviour of the enable and disable
3812 GDB commands when applied to tracepoints.
3813 Add news items for the new remote packets QTEnable and QTDisable.
3814
3815 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3816
3817 * config.in: Regenerate.
3818 * configure: Regenerate.
3819 * configure.ac <--with-system-readline> (for readline_echoing_p):
3820 Remove the test.
3821 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3822 (tui_old_rl_echoing_p): ... here.
3823 (tui_setup_io): Rename extern declaration readline_echoing_p to
3824 _rl_echoing_p. Adjust assignments for the both renames.
3825
3826 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3827
3828 * symtab.c (lookup_symtab): Run cleanup before returning.
3829
3830 2011-05-11 Tom Tromey <tromey@redhat.com>
3831
3832 * dwarf2read.c (handle_data_member_location): New function.
3833 (dwarf2_add_field): Use it.
3834 (read_common_block): Likewise.
3835
3836 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3837
3838 Make addrs->SECTINDEX always defined.
3839 * symfile.c (relative_addr_info_to_section_offsets): Check for
3840 SECTINDEX -1, not for zero ADDR.
3841 (addrs_section_compar): Remove checking for invalid SECTINDEX.
3842 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3843 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3844 on its validity.
3845
3846 2011-05-10 Doug Evans <dje@google.com>
3847
3848 * linux-thread-db.c: Whitespace cleanup.
3849 (try_thread_db_load_1): Fix comment.
3850
3851 * linux-thread-db.c (set_libthread_db_search_path): New function.
3852 (_initialize_thread_db): Add setter for libthread-db-search-path.
3853
3854 2011-05-09 Doug Evans <dje@google.com>
3855
3856 * NEWS: Mention --with-iconv-bin.
3857 * configure.ac: New option --with-iconv-bin.
3858 * configure: Regenerate.
3859 * config.in: Regenerate.
3860 * defs.h (relocate_gdb_directory): Declare.
3861 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3862 removed progname parameter, and exported. All callers updated.
3863 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3864
3865 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3866 adding missing call to restore_child_signals_mask.
3867
3868 2011-05-09 Pedro Alves <pedro@codesourcery.com>
3869
3870 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3871 parameter.
3872 * infrun.c (proceed, start_remote): Adjust.
3873 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3874 and adjust to not handle it.
3875 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3876 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3877 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3878 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3879 * windows-nat.c (do_initial_windows_stuff): Adjust.
3880 * infcmd.c (attach_command): Adjust.
3881 (notice_new_inferior): Adjust.
3882
3883 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3884
3885 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3886 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3887 * spu-tdep.c (op_selb): Use correct value.
3888
3889 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3890
3891 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3892 "parent" parameter to symbol_file_add_from_bfd call.
3893
3894 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3895 Thiago Jung Bauermann <bauerman@br.ibm.com>
3896
3897 Implement support for PowerPC BookE masked watchpoints.
3898 * NEWS: Mention masked watchpoint support. Create "Changed commands"
3899 section.
3900 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3901 method. Initialize to NULL in all existing breakpoint_ops instances.
3902 (struct breakpoint) <hw_wp_mask>: New field.
3903 * breakpoint.c (is_masked_watchpoint): Add prototype.
3904 (update_watchpoint): Don't set b->val for masked watchpoints. Call
3905 breakpoint's breakpoint_ops.works_in_software_mode if available.
3906 (watchpoints_triggered): Handle the case of a hardware masked
3907 watchpoint trigger.
3908 (watchpoint_check): Likewise.
3909 (works_in_software_mode_watchpoint): New function.
3910 (insert_masked_watchpoint, remove_masked_watchpoint)
3911 (resources_needed_masked_watchpoint)
3912 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3913 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3914 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3915 functions.
3916 (masked_watchpoint_breakpoint_ops): New structure.
3917 (watch_command_1): Check for the existence of the `mask' parameter.
3918 Set b->ops according to the type of hardware watchpoint being created.
3919 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3920 (ppc_linux_remove_mask_watchpoint)
3921 (ppc_linux_masked_watch_num_registers): New functions.
3922 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3923 to_remove_mask_watchpoint and to_masked_watch_num_registers.
3924 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3925 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3926 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3927 (target_masked_watch_num_registers): New functions.
3928 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3929 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3930 methods.
3931 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3932 (target_masked_watch_num_registers): Add prototypes.
3933
3934 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3935
3936 PR 12573
3937 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3938 (producer_is_gcc_ge_4_0): New function.
3939 (process_full_comp_unit): Set also symtab->locations_valid. Move the
3940 symtab->language code.
3941 (var_decode_location): Set cu->has_loclist.
3942 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3943 skip. Intialize force_skip from locations_valid. Move the prologue
3944 skipping code into two passes.
3945 * symtab.h (struct symtab): Make the primary field a bitfield. New
3946 field locations_valid.
3947
3948 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3949
3950 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3951 (classify_inner_name): Call cp_lookup_nested_type with
3952 yylval.tsym.type.
3953 * cp-namespace.c (cp_lookup_nested_type): New variable
3954 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
3955 type_name_no_tag_or_error with saved_parent_type.
3956 * dwarf2read.c (load_partial_dies): Read in any children of
3957 DW_TAG_typedef with complaint in such case.
3958 * gdbtypes.c (type_name_no_tag_or_error): New function.
3959 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3960 * valops.c (destructor_name_p): New comment for parameter type. Remove
3961 type const. Make dname and cp const. Call type_name_no_tag_or_error.
3962 * value.h (destructor_name_p): Remove type const.
3963
3964 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3965
3966 * symtab.c (compare_symbol_name): New function.
3967 (completion_list_add_name, expand_partial_symbol_name): Call it,
3968 remove the variable ncmp.
3969 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3970 gdb_assert it.
3971
3972 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3973
3974 Demote to sw watchpoint only in update_watchpoint.
3975 * breakpoint.c (update_watchpoint): Change between software and
3976 hardware watchpoint for all kinds of watchpoints, not just
3977 read/write ones. Determine b->exact value here instead of
3978 in watch_command_1. Error out if there are not enough resources
3979 for a read or access hardware watchpoint.
3980 (watch_command_1): Remove logic of checking whether there are
3981 enough resources available, since update_watchpoint will do that
3982 work now. Don't set b->exact here. Catch exceptions thrown by
3983 update_watchpoint and delete the watchpoint.
3984 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3985 Use target_exact_watchpoints instead.
3986 (delete_breakpoint): Notify observers only if deleted watchpoint
3987 has a breakpoint number assigned to it.
3988
3989 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
3990
3991 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3992
3993 2011-05-05 Jerome Guitton <guitton@adacore.com>
3994
3995 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3996 New functions.
3997 (i386_stack_tramp_frame_unwind): New static global.
3998 (i386_match_pattern): New function, extracted from i386_match_insn.
3999 (i386_match_insn): Use i386_match_pattern.
4000 (i386_match_insn_block): New function.
4001 (i386_tramp_chain_in_reg_insns)
4002 (i386_tramp_chain_on_stack_insns): New static variables.
4003 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
4004 of unwinders.
4005
4006 2011-05-04 Joseph Myers <joseph@codesourcery.com>
4007
4008 * configure.host (xscale*): Don't handle target.
4009 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
4010 handle targets.
4011
4012 2011-05-04 Yao Qi <yao@codesourcery.com>
4013
4014 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
4015
4016 2011-05-03 Joel Brobecker <brobecker@adacore.com>
4017
4018 Revert:
4019 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
4020 | * elfread.c (elf_symtab_read): Stop memory leak.
4021
4022 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4023
4024 * nto-tdep.c (nto_target): Replace deprecated call to
4025 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
4026
4027 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4028
4029 Fix false GCC warning.
4030 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
4031
4032 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
4033
4034 * breakpoint.c (update_watchpoint): Move code to change
4035 the enable state of breakpoint from here ...
4036 (do_enable_breakpoint): ... to here.
4037
4038 2011-04-26 Andrew Gontarek <andrewg@cray.com>
4039
4040 * valprint.c (val_print_array_elements): Fixed poor performance
4041 of printing very large arrays with repeat_count_threshold set
4042 to unlimited. New comment.
4043
4044 2011-04-29 Tom Tromey <tromey@redhat.com>
4045
4046 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
4047 (mi_parse): Likewise.
4048 * breakpoint.c (break_range_command): Use sizeof char*, not
4049 char**.
4050 (create_breakpoint): Likewise.
4051 (parse_breakpoint_sals): Likewise.
4052
4053 2011-04-29 Pedro Alves <pedro@codesourcery.com>
4054
4055 * linux-nat.c (linux_child_remove_fork_catchpoint)
4056 (linux_child_remove_vfork_catchpoint)
4057 (linux_child_remove_exec_catchpoint): New functions.
4058 (linux_target_install_ops): Install them.
4059
4060 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
4061
4062 PR mi/12531
4063
4064 * varobj.c (install_default_visualizer): Do not install a
4065 visualizer if the varobj is CPLUS_FAKE_CHILD.
4066 (construct_visualizer): Likewise.
4067
4068 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4069
4070 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
4071 case insensitive comparison.
4072
4073 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
4074
4075 * infrun.c (proceed): Revert previous change.
4076 (resume): Instead, handle the case of signal delivery while stepping
4077 off a breakpoint location here, and only if software single-stepping
4078 is used. Handle nested signals.
4079
4080 2011-04-28 Yao Qi <yao@codesourcery.com>
4081
4082 * arm-tdep.c (copy_unmodified): Rename to ...
4083 (arm_copy_unmodified): .. this. New.
4084 (copy_preload): Move common part to ...
4085 (install_preload): .. this. New.
4086 (arm_copy_preload): New.
4087 (copy_preload_reg): Move common part to ...
4088 (install_preload_reg): ... this. New.
4089 (arm_copy_preload_reg): New.
4090 (copy_b_bl_blx): Move common part to ...
4091 (install_b_bl_blx): .. this. New.
4092 (arm_copy_b_bl_blx): New.
4093 (copy_bx_blx_reg): Move common part to ...
4094 (install_bx_blx_reg): ... this. New.
4095 (arm_copy_bx_blx_reg): New.
4096 (copy_alu_reg): Move common part to ...
4097 (install_alu_reg): ... this. New.
4098 (arm_copy_alu_reg): New.
4099 (copy_alu_shifted_reg): Move common part to ...
4100 (install_alu_shifted_reg): ... this. New.
4101 (copy_ldr_str_ldrb_strb): Move common part to ...
4102 (install_ldr_str_ldrb_strb): ... this. New.
4103 (arm_copy_ldr_str_ldrb_strb): New.
4104 (copy_copro_load_store): Move some common part to ...
4105 (install_copy_copro_load_store): ... this. New.
4106 (arm_copy_copro_load_store): New.
4107 (copy_svc): Delete.
4108 (arm_copy_svc): Renamed from copy_svc.
4109 (copy_undef): Delete.
4110 (arm_copy_undef): Renamed from copy_undef.
4111 (decode_ext_reg_ld_st): Delete.
4112 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
4113 (decode_svc_copro): Delete.
4114 (arm_decode_svc_copro): Renamed from decode_svc_copro.
4115 (copy_copro_load_store, copy_alu_imm): update callers.
4116 (copy_extra_ld_st, copy_block_xfer): Likewise.
4117 (decode_misc_memhint_neon, decode_unconditional): Likewise.
4118 (decode_miscellaneous, decode_dp_misc): Likewise.
4119 (decode_ld_st_word_ubyte, decode_media): Likewise.
4120 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
4121 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
4122 (decode_unconditional, decode_miscellaneous): Likewise.
4123 (decode_media, decode_b_bl_ldmstm): Likewise.
4124 (arm_process_displaced_insn): Likewise..
4125 (decode_misc_memhint_neon): Delete.
4126 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
4127 (decode_miscellaneous): Delete.
4128 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
4129 (decode_dp_misc): Delete.
4130 (arm_decode_dp_misc): Renamed from decode_dp_misc.
4131 (decode_ld_st_word_ubyte): Delete.
4132 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
4133 (decode_media): Delete.
4134 (arm_decode_media): Renamed from decode_media.
4135 (decode_b_bl_ldmstm): Delete.
4136 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
4137 (decode_ext_reg_ld_st): Delete.
4138 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
4139 (decode_unconditional): Delete.
4140 (arm_decode_unconditional): Renamed from decode_unconditional.
4141
4142 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4143
4144 Case insensitive lookups implementation.
4145 * dwarf2read.c: Include ctype.h.
4146 (struct mapped_index): New field version.
4147 (mapped_index_string_hash): New parameter index_version. New comment
4148 for it. Call tolower appropriately.
4149 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
4150 Choose the right index version for mapped_index_string_hash.
4151 (dwarf2_read_index): Support also the index version 5. Initialize the
4152 new struct mapped_index field version.
4153 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
4154 (find_slot): Explain the version needs. Pass INT_MAX for the new
4155 parameter.
4156 (write_psymtabs_to_index): Produce version 5.
4157 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
4158 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
4159 * psymtab.c (lookup_partial_symbol): Find the
4160 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
4161 entries.
4162 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
4163 NAME lowercasing.
4164 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
4165 (completion_list_add_name): New variable ncmp, initialize it, use it.
4166 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
4167 * utils.c (strcmp_iw): Support case_sensitive_off.
4168 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
4169 New function comment part. New variables saved_string1,
4170 saved_string2 and case_pass. Add a proper second pass.
4171
4172 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4173
4174 Replace re_comp/re_exec by regcomp/regexec.
4175 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
4176 (search_symbols_name_matches): Use them, use regexec.
4177 (search_symbols): New variable retval_chain, adjust the use of
4178 old_chain against it. Replace re_comp by regcomp. Use the new struct
4179 search_symbols_data fields, use regexec instead of re_exec.
4180
4181 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4182
4183 Format the code for the next patch.
4184 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
4185 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
4186 New variables c1 and c2.
4187
4188 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4189
4190 * infrun.c (proceed): Do not single-step into signal delivery
4191 when stepping off a breakpoint location.
4192 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
4193 (insert_step_resume_breakpoint_at_caller): Likewise.
4194 (insert_step_resume_breakpoint_at_sal): Likewise.
4195 (insert_longjmp_resume_breakpoint): Likewise.
4196
4197 2011-04-27 Yao Qi <yao@codesourcery.com>
4198
4199 * common/linux-ptrace.h: Remove include <sys/wait.h>.
4200
4201 2011-04-27 Joel Brobecker <brobecker@adacore.com>
4202
4203 * procfs.c (procfs_pass_signals): Fix advance declaration.
4204
4205 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4206
4207 * target.h (struct target_ops): Remove to_notice_signals;
4208 add to_pass_signals.
4209 (target_notice_signals): Remove.
4210 (target_pass_signals): Add prototype.
4211 * target.c (update_current_target): Remove to_notice_signals;
4212 mention to_pass_signals.
4213 (target_pass_signals): New function.
4214 (debug_to_notice_signals): Remove.
4215 (setup_target_debug): Do not install debug_to_notice_signals.
4216
4217 * infrun.c (signal_pass): New global.
4218 (resume): Call target_pass_signals.
4219 (handle_inferior_event): Report all signals while stepping over
4220 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
4221 are re-inserted when stepping over a signal handler.
4222 (signal_cache_update): New function.
4223 (signal_stop_update): Call it.
4224 (signal_print_update): Likewise.
4225 (signal_pass_update): Likewise.
4226 (handle_command): Call signal_cache_update and target_pass_signals
4227 instead of target_notice_signals.
4228 (_initialize_infrun): Initialize signal_pass.
4229
4230 * linux-nat.c (pass_mask): New global.
4231 (linux_nat_pass_signals): New function.
4232 (linux_nat_create_inferior): Report all signals initially.
4233 (linux_nat_attach): Likewise.
4234 (linux_nat_resume): Use pass_mask to decide whether to directly
4235 handle an inferior signal.
4236 (linux_nat_wait_1): Likewise.
4237 (linux_nat_add_target): Install to_pass_signals callback.
4238
4239 * nto-procfs.c (notice_signals): Remove.
4240 (procfs_resume): Do not call notice_signals.
4241 (procfs_notice_signals): Remove.
4242 (procfs_pass_signals): New function.
4243 (init_procfs_ops): Install to_pass_signals callback instead of
4244 to_notice_signals callback.
4245 (_initialize_procfs): Report all signals initially.
4246
4247 * procfs.c (procfs_notice_signals): Remove.
4248 (procfs_pass_signals): New function.
4249 (procfs_target): Install to_pass_signals callback instead of
4250 to_notice_signals callback.
4251 (register_gdb_signals): Remove.
4252 (procfs_debug_inferior): Report all signals initially.
4253 (procfs_init_inferior): Remove redundant register_gdb_signals call.
4254
4255 * remote.c (remote_pass_signals): Add numsigs and pass_signals
4256 parameters; use them instead of calling signal_..._state routines.
4257 (remote_notice_signals): Remove.
4258 (remote_start_remote): Report all signals initially.
4259 (remote_resume): Do not call remote_pass_signals.
4260 (_initialize_remote): Install to_pass_signals callback instead of
4261 to_notice_signals callback.
4262
4263 2011-04-27 Pedro Alves <pedro@codesourcery.com>
4264
4265 * breakpoint.c (user_settable_breakpoint): Delete.
4266 (user_breakpoint_p): Remove check on user_settable_breakpoint.
4267 (delete_command): Check user_breakpoint_p instead of looking at
4268 the breakpoint's type.
4269 (disable_command): Ditto.
4270 (enable_command): Ditto.
4271 (delete_trace_command): Use user_breakpoint_p instead of looking
4272 at the breakpoint number directly. When checking if there are
4273 user visible tracepoints, in order to know whether to ask the user
4274 for confirmation, check whether the breakpoint is actually a
4275 tracepoint.
4276
4277 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4278
4279 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
4280 compilation.
4281
4282 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4283
4284 MI breakpoint notifications.
4285
4286 * annotate.c (breakpoint_changed): Adjust parameter type.
4287 * breakpoint.c (set_breakpoint_condition): Adjust to change
4288 in breakpoint_modified type.
4289 (breakpoint_set_commands): Likewise.
4290 (do_map_commands_command): Likewise.
4291 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
4292 changed after bumping hit count.
4293 (bpstat_stop_status): Likewise.
4294 (print_one_breakpoint_location): Don't wrap in tuple here.
4295 (print_one_breakpoint): Always print individual locations.
4296 For locations, use unnamed tuple.
4297 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
4298 has changed.
4299 (create_catchpoint, create_syscall_event_catchpoint): Call
4300 breakpoint_created obsever.
4301 (mention): Don't call breakpoint_created observer.
4302 (create_breakpoint_sal): Call breakpoint_created observer.
4303 (create_breakpoint, watch_command_1): Likewise.
4304 (create_ada_exception_breakpoint): Likewise.
4305 (delete_breakpoint): Call breakpoint_deleted breakpoint.
4306 (locations_are_equal): New.
4307 (update_breakpoint_locations): If locations were changed, notify.
4308 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
4309 Call breakpoint_modified observer.
4310
4311 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4312 (mi_cmd_break_insert): Don't set observers for modify and delete.
4313 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
4314 (mi_breakpoint_created, mi_breakpoint_deleted)
4315 (mi_breakpoint_modified): New.
4316 (mi_interpreter_init): Hook the above.
4317 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
4318 while -break-* commands are executing.
4319 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
4320 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
4321 (mi_redirect): New.
4322 (mi_ui_out_impl): Hook in mi_redirect.
4323 (mi_field_skip): True to the name, skip the field, don't output
4324 a field with an empty value.
4325
4326 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4327 (gdbpy_breakpoint_deleted): Adjust.
4328 * tui/tui-hooks.c (tui_event_create_breakpoint)
4329 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
4330
4331 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
4332
4333 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
4334 (procfs_remove_hw_watchpoint): Likewise.
4335
4336 2011-04-26 Michael Walle <michael@walle.cc>
4337
4338 * remote.c (remote_start_remote): Ack packet after sending the
4339 interrupt sequence.
4340
4341 2011-04-26 Yao Qi <yao@codesourcery.com>
4342
4343 * linux-nat.c: Move common macros to ...
4344 Include linux-ptrace.h.
4345 * common/linux-ptrace.h: ... here. New.
4346
4347 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4348
4349 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
4350 !objfile_has_partial_symbols. New comment.
4351 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
4352 SYM_READ_PSYMBOLS is not present. Extend the comment.
4353 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
4354
4355 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4356
4357 * defs.h (ENUM_BITFIELD): Remove.
4358
4359 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4360 Eli Zaretskii <eliz@gnu.org>
4361
4362 * NEWS: Document the new gdbserver --once option.
4363
4364 2011-04-21 Jie Zhang <jzhang918@gmail.com>
4365
4366 * MAINTAINERS: Update my email address.
4367
4368 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4369
4370 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
4371 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
4372 function call if __STDC_ISO_10646__ macro is defined.
4373 (intermediate_encoding): New prototype.
4374 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
4375 to generate compile time error for unsupported gdb_wchar_t size.
4376 (ENDIAN_SUFFIX): New macro.
4377 (intermediate_encoding): New function.
4378
4379 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4380
4381 * ada-lang.c (struct add_partial_datum): Update the comment for
4382 expand_partial_symbol_name.
4383 (ada_add_partial_symbol_completions): Rename to ...
4384 (ada_expand_partial_symbol_name): ... here, change return type, update
4385 function comment, call symbol_completion_match instead of
4386 symbol_completion_add.
4387 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
4388 and ada_expand_partial_symbol_name.
4389 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
4390 FILE_MATCHER.
4391 (dw2_map_symbol_names): Remove.
4392 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
4393 * psymtab.c (map_symbol_names_psymtab): Remove.
4394 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
4395 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
4396 order.
4397 (psym_functions): Unlist map_symbol_names_psymtab.
4398 (map_partial_symbol_names): Rename to ...
4399 (expand_partial_symbol_names): ... here, change the FUN type, call
4400 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
4401 * psymtab.h (map_partial_symbol_names): Rename to ...
4402 (expand_partial_symbol_names): ... here, change the FUN type.
4403 * symfile.h (struct quick_symbol_functions): Update the description of
4404 expand_symtabs_matching. Remove map_symbol_names.
4405 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
4406 (struct add_name_data): Update the comment for
4407 expand_partial_symbol_name.
4408 (add_partial_symbol_name): Rename to ...
4409 (expand_partial_symbol_name): ... here. Replace
4410 completion_list_add_name call by strncmp.
4411 (default_make_symbol_completion_list_break_on): Use now
4412 expand_partial_symbol_names and expand_partial_symbol_name.
4413 * symtab.h (enum search_domain): New element ALL_DOMAIN.
4414
4415 2011-04-20 Tom Tromey <tromey@redhat.com>
4416
4417 * dwarf2read.c (save_gdb_index_command): Replace format
4418 documentation with a pointer to the manual.
4419
4420 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4421
4422 * regcache.c: Include remote.h.
4423 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
4424 (regcache_dump): Handle regcache_dump_remote.
4425 (maintenance_print_remote_registers): New function.
4426 (_initialize_regcache): Install "maint print remote-registers"
4427 command.
4428 * remote.c (map_regcache_remote_table): New function, factored out
4429 from ...
4430 (init_remote_state): ... here.
4431 (remote_register_number_and_offset): New.
4432 * remote.h (remote_register_number_and_offset): Declare.
4433
4434 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4435
4436 * regcache.c (get_thread_arch_regcache): If creating a regcache for
4437 null_ptid, assume and allow a NULL address space, instead of
4438 asking the target for the ptid's address space.
4439 * infrun.c (ptid_is_pid): Remove assertion.
4440
4441 2011-04-19 Tom Tromey <tromey@redhat.com>
4442
4443 * windows-tdep.c (windows_xfer_shared_library):
4444 * windows-nat.c (get_module_name, windows_make_so):
4445 * v850-tdep.c (v850_handle_pushm):
4446 * utils.c (null_cleanup, gdb_realpath):
4447 * ui-out.c (get_next_header):
4448 * tracepoint.c (clear_traceframe_info):
4449 * symtab.c (lookup_symtab):
4450 * serial.h (struct serial_ops):
4451 * mipsread.c (read_alphacoff_dynamic_symtab):
4452 * infcmd.c (print_return_value):
4453 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
4454 * f-exp.y (parse_number):
4455 * exceptions.c (catch_exceptions):
4456 * dummy-frame.c (dummy_frame_this_id):
4457 * defs.h (struct cleanup):
4458 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
4459 * arm-tdep.c (arm_push_dummy_call):
4460 * amd64-tdep.h (amd64_collect_xsave):
4461 * amd64-tdep.c (amd64_collect_xsave):
4462 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
4463 * README (typing): Remove duplicate words.
4464 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
4465 * infrun.c (siginfo_value_read): Fix typo.
4466 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
4467 * top.c (source_line_number): Add comma.
4468
4469 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
4470
4471 * thread.c (any_live_thread_of_process): Prioritize threads
4472 that are not executing.
4473 * gdbthread.h (any_live_thread_of_process): Update comment
4474 as per above change.
4475
4476 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
4477
4478 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
4479 (scan_xcoff_symtab): Likewise.
4480
4481 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4482
4483 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
4484 inside if clause.
4485
4486 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4487 Pedro Alves <pedro@codesourcery.com>
4488
4489 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
4490 variables to simplify code and avoid == operator at end of
4491 line as this is against GNU coding standards.
4492
4493 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4494
4495 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
4496 lm_name to name_lm to avoid conflict with lm_name function.
4497
4498 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4499
4500 ARI fixes: Use only lowercase function name for static functions.
4501 * nto-tdep.c (LM_ADDR): Rename to...
4502 (lm_addr): New function name.
4503 (nto_relocate_section_addresses): Adapt to change above.
4504 * solib-sunos.c (LM_ADDR): Rename to...
4505 (lm_addr): New function name.
4506 (LM_NEXT): Rename to...
4507 (lm_next): New function name.
4508 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
4509 function name changes above.
4510 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
4511 (lm_addr_from_link_map): New function name.
4512 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4513 (has_lm_dynamic_from_link_map): New function name.
4514 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4515 (lm_dynamic_from_link_map): New function name.
4516 (LM_ADDR_CHECK): Rename to...
4517 (lm_addr_check): New function name.
4518 (LM_NEXT): Rename to...
4519 (lm_next): New function name.
4520 (LM_PREV): Rename to...
4521 (lm_prev): New function name.
4522 (LM_NAME): Rename to...
4523 (lm_name): New function name.
4524 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
4525 (ignore_first_link_map_entry): New function name.
4526 (svr4_keep_data_in_core): Adapt to function name changes above.
4527 (svr4_current_sos): Likewise.
4528 (enable_break): Likewise.
4529 (svr4_relocate_section_addresses): Likewise.
4530
4531 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4532
4533 ARI cleanup.
4534 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
4535 sprintf. Simplify code and avoid loosing memory.
4536 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
4537 (call0_frame_cache): Remove && operator from end of line.
4538
4539 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4540
4541 Fix libraries displacement if they change whether they were prelinked.
4542 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
4543 does not match. Comment why.
4544
4545 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4546
4547 * corelow.c: Include wrapper.h.
4548 (core_open): Call now gdb_target_find_new_threads.
4549 * wrapper.c: Include target.h.
4550 (gdb_target_find_new_threads): New.
4551 * wrapper.h (gdb_target_find_new_threads): New declaration.
4552
4553 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4554
4555 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
4556 even if !TARGET_HAS_EXECUTION.
4557
4558 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4559
4560 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
4561 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
4562 bfd_get_synthetic_symtab.
4563 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
4564 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
4565 parameter parent, remove the call to add_separate_debug_objfile.
4566 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
4567 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4568 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
4569 parent, new comment for it, call add_separate_debug_objfile for it.
4570 (symbol_file_add_separate): Pass objfile as the parameter parent,
4571 remove the call to add_separate_debug_objfile.
4572 (symbol_file_add_from_bfd): New parameter parent, pass it.
4573 (symbol_file_add): Pass NULL to the new parameter parent.
4574 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
4575
4576 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4577
4578 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
4579 BSF_SYNTHETIC.
4580
4581 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4582
4583 Fix Python access to inlined frames.
4584 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
4585 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4586
4587 2011-04-15 Tom Tromey <tromey@redhat.com>
4588
4589 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
4590
4591 2011-04-15 Gary Benson <gbenson@redhat.com>
4592
4593 * MAINTAINERS: Add myself to write-after-approval section.
4594
4595 2011-04-14 Mike Frysinger <vapier@gentoo.org>
4596
4597 * remote-sim.c (sim_command_completer): New function.
4598 (_initialize_remote_sim): Set completer to sim_command_completer.
4599
4600 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4601
4602 * breakpoint.c (print_exception_catchpoint): Rename to ...
4603 (print_it_exception_catchpoint): ... this.
4604 (gnu_v3_exception_catchpoint_ops): Update with new name
4605 for print_it_exception_catchpoint.
4606
4607 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
4608
4609 * MAINTAINERS: Add myself for write after approval privileges.
4610
4611 2011-04-13 Marek Polacek <mpolacek@redhat.com>
4612
4613 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4614
4615 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4616
4617 * breakpoint.c (watch_command_1): Remove colon from exp_string.
4618
4619 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4620
4621 * breakpoint.c (save_breakpoints): Verify whether
4622 breakpoint_ops.print_recreate is defined before calling it.
4623
4624 2011-04-11 Gary Benson <gbenson@redhat.com>
4625
4626 Fix failure with --enable-maintainer-mode.
4627 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
4628
4629 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4630
4631 Code cleanup.
4632 * symtab.c (search_symbols): Reorder the KIND description in the
4633 function comment. Remove the unused 4th element of types, types2,
4634 types3 and types4. New gdb_assert on KIND.
4635 (symtab_symbol_info): Remove the unused 4th element of classnames.
4636 New gdb_assert on KIND.
4637 * symtab.h (enum search_domain): New warning in the enum comment.
4638 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
4639 TYPES_DOMAIN.
4640
4641 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4642
4643 Fix crash of gdb save-index on a STABS file.
4644 * dwarf2read.c (write_psymtabs_to_index): Return also on no
4645 PSYMTABS_ADDRMAP.
4646
4647 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4648
4649 Fix DW_AT_accessibility compatibility with gcc-4.6+.
4650 * dwarf2read.c: Include ctype.h.
4651 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
4652 functions.
4653 (dwarf2_add_field): Fix new_field->accessibility by calling
4654 dwarf2_default_access_attribute. Restructure setting accessibility
4655 vs. virtuality.
4656 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
4657 is_private and is_protected by calling
4658 dwarf2_default_access_attribute.
4659
4660 2011-04-08 Kevin Buettner <kevinb@redhat.com>
4661
4662 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
4663 to the initialization.
4664
4665 2011-04-08 Steve Ellcey <sje@cup.hp.com>
4666
4667 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
4668 initalization.
4669
4670 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
4671
4672 Remove support for old Cygwin 1.5 versions.
4673 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
4674 function on old Cygwin version.
4675 * windows-nat.c: Remove cygwin version check and always define
4676 __USEWIDE for Cygwin compilation.
4677
4678 2011-04-07 Yao Qi <yao@codesourcery.com>
4679
4680 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
4681 and TO.
4682 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
4683 (arm_copy_svc): Remove parameters INSN and TO.
4684 (decode_svc_copro): Update caller.
4685 * arm-tdep.h (struct displaced_step_closure): Remove parameters
4686 from function pointer `copy_svc_os'.
4687
4688 2011-04-07 Yao Qi <yao@codesourcery.com>
4689
4690 * arm-tdep.c (cleanup_branch): Set a correct return address in
4691 LR for ARM and Thumb.
4692
4693 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4694
4695 Code cleanup.
4696 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
4697 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
4698 in the function comment, a new note on values compatibility.
4699 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
4700 * symtab.h (SYMBOL_HASH_NEXT): New.
4701
4702 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
4703
4704 * ppc-linux-nat.c (check_condition): Add len output parameter.
4705 Set it based on the memory region referenced in the condition
4706 expression. Update all callers.
4707
4708 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4709
4710 Fix crash regression on systems featuring .gdb_index.
4711 * objfiles.c (free_objfile): Move the
4712 forget_cached_source_info_for_objfile call earlier. Comment it.
4713 Extend the comment for objfile_free_data.
4714
4715 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4716
4717 Fix regression of displaying the debug format.
4718 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4719 subfile.
4720
4721 2011-04-04 Tom Tromey <tromey@redhat.com>
4722
4723 * cli/cli-interp.c (struct captured_execute_command_args):
4724 Remove.
4725 (do_captured_execute_command): Remove.
4726 (safe_execute_command): Use TRY_CATCH.
4727 * cli/cli-script.c (struct wrapped_read_command_file_args):
4728 Remove.
4729 (wrapped_read_command_file): Remove.
4730 (script_from_file): Use TRY_CATCH.
4731 * exceptions.c (catch_exception): Remove.
4732 * exceptions.h (catch_exception): Remove.
4733 (deprecated_throw_reason): Update comment.
4734 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4735 argument to 'context'.
4736 (mi_execute_command): Use TRY_CATCH.
4737 * remote.c (struct start_remote_args): Remove.
4738 (remote_start_remote): Update; change arguments.
4739 (remote_open_1): Use TRY_CATCH.
4740
4741 2011-04-04 Tom Tromey <tromey@redhat.com>
4742
4743 * tracepoint.c (scope_info): Update.
4744 * symtab.c (decode_line_spec): Update.
4745 * python/python.c (gdbpy_decode_line): Update.
4746 * linespec.h (decode_line_1): Update.
4747 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4748 (decode_compound, find_method, symtab_from_filename)
4749 (decode_variable): Likewise.
4750 * cli/cli-cmds.c (edit_command): Update.
4751 (list_command): Update.
4752 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4753 argument.
4754 (create_breakpoint): Update.
4755 (until_break_command): Update.
4756 (addr_string_to_sals): Update.
4757 (decode_line_spec_1): Update.
4758
4759 2011-04-04 Tom Tromey <tromey@redhat.com>
4760
4761 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4762 (do_captured_parse_breakpoint): Remove.
4763 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
4764 Use TRY_CATCH directly.
4765
4766 2011-04-04 Tom Tromey <tromey@redhat.com>
4767
4768 * symtab.h (free_symtab): Remove.
4769 (forget_cached_source_info_for_objfile): Declare.
4770 * symmisc.c (free_symtab): Remove.
4771 * source.c (forget_cached_source_info_for_objfile): New function.
4772 (forget_cached_source_info): Use it.
4773 * objfiles.c (free_objfile): Simplify check before calling
4774 clear_current_source_symtab_and_line. Call
4775 forget_cached_source_info_for_objfile.
4776
4777 2011-04-04 Tom Tromey <tromey@redhat.com>
4778
4779 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4780 (new_symtab): Don't set `free_code' on symtab.
4781 (new_linetable): Properly handle size==0.
4782 * symtab.h (struct symtab) <free_code, free_func>: Remove.
4783 * symmisc.c (free_symtab): Don't free the linetable. Don't call
4784 free_func.
4785 * jv-lang.c (struct jv_per_objfile_data): New.
4786 (jv_per_objfile_free): Free the data.
4787 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4788 (get_java_class_symtab): Set the `dict' field on the
4789 jv_per_objfile_data.
4790 (free_class_block): Remove.
4791 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4792 the symtab.
4793
4794 2011-04-04 Tom Tromey <tromey@redhat.com>
4795
4796 * symfile.c (reread_symbols): Update.
4797 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4798 field.
4799 * objfiles.c (allocate_objfile): Update.
4800 * cp-support.h (cp_check_possible_namespace_symbols): Don't
4801 declare.
4802 * cp-namespace.c (lookup_symbol_file): Don't call
4803 lookup_possible_namespace_symbol.
4804 (initialize_namespace_symtab, get_possible_namespace_block)
4805 (free_namespace_block, cp_check_possible_namespace_symbols)
4806 (check_possible_namespace_symbols_loop)
4807 (check_one_possible_namespace_symbol)
4808 (lookup_possible_namespace_symbol): Remove.
4809 (maintenance_cplus_namespace): Replace with notice.
4810 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4811
4812 2011-04-04 Tom Tromey <tromey@redhat.com>
4813
4814 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4815 * symtab.h (struct symtab) <producer, debugformat>: Now const.
4816 * symmisc.c (free_symtab): Don't free debugformat.
4817 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4818 (record_debugformat, record_producer): Document.
4819 * buildsym.c (end_symtab): Don't save debugformat and producer
4820 names on obstack.
4821 (end_symtab): Don't free debugformat and producer fields.
4822 (record_debugformat): Don't call xstrdup.
4823 (record_producer): Likewise.
4824
4825 2011-04-04 Tom Tromey <tromey@redhat.com>
4826
4827 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4828 (source_line_charpos, source_charpos_line): Remove.
4829
4830 2011-04-04 Tom Tromey <tromey@redhat.com>
4831
4832 * symtab.h (domain_enum): Split in two...
4833 (enum search_domain): New.
4834 (search_symbols): Update.
4835 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4836 redundant declarations.
4837 (search_symbols): Change 'kind' argument to search_domain.
4838 Update.
4839 (print_symbol_info): Likewise.
4840 (symtab_symbol_info): Likewise.
4841 * symfile.h (struct quick_symbol_functions)
4842 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4843 <expand_symtabs_matching>: Likewise.
4844 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4845 (expand_symtabs_matching_via_partial): Update.
4846 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4847 (dw2_expand_symtabs_for_function): Update.
4848 * block.h: Moved anonymous enum...
4849 * defs.h (enum block_enum): ... here. Now named.
4850
4851 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4852
4853 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4854 * version.in: Bump version to 7.3.50.20110403-cvs.
4855
4856 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4857
4858 * NEWS: Create a new section for the next release branch.
4859 Rename the section of the current branch, now that it has
4860 been cut.
4861
4862 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4863
4864 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4865 for "fpscr" in target description.
4866
4867 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4868
4869 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4870 initialize it. Delay HASH initialization. Strip the part after open
4871 parenthesis for languages with qualifiers. Call do_cleanups.
4872
4873 2011-04-01 Tom Tromey <tromey@redhat.com>
4874
4875 * utils.c (report_command_stats): Don't print `-' for negative
4876 number.
4877
4878 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
4879
4880 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4881 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4882 typedefs.
4883
4884 2011-04-01 Joel Brobecker <brobecker@adacore.com>
4885
4886 * breakpoint.h (bpdisp_text): Add declaration.
4887 * breakpoint.c (bpdisp_text): Make non-static.
4888 * ada-lang.c: #include "mi/mi-common.h".
4889 (print_it_exception): Rewrite to improve GDB/MI output.
4890
4891 2011-04-01 Pedro Alves <pedro@codesourcery.com>
4892
4893 * arm-tdep.h (struct address_space): Add forward declaration.
4894
4895 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4896
4897 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4898 * arm-tdep.c (arm_override_mode): New global.
4899 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
4900 execution mode heuristics.
4901 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4902 second single-step breakpoint if needed, using
4903 arm_insert_single_step_breakpoint.
4904 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
4905 ARM execution mode, do not call thumb_get_next_pc_raw.
4906 (arm_get_next_pc): Encode execution mode in return value. Call
4907 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4908 (arm_insert_single_step_breakpoint): New function.
4909 (arm_software_single_step): Call it.
4910 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4911 argument to return execution mode of sigreturn target.
4912 (arm_linux_syscall_next_pc): Use it.
4913 (arm_linux_copy_svc): Update call.
4914 (arm_linux_software_single_step): Call
4915 arm_insert_single_step_breakpoint.
4916
4917 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4918
4919 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4920 the comment.
4921
4922 2011-03-31 Tom Tromey <tromey@redhat.com>
4923
4924 * varobj.c (update_dynamic_varobj_children): Properly handle
4925 errors from iterator.
4926
4927 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4928
4929 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
4930 struct linkage name twice.
4931
4932 2011-03-31 Tom Tromey <tromey@redhat.com>
4933
4934 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4935 missing ">" to message.
4936
4937 2011-03-31 Tom Tromey <tromey@redhat.com>
4938
4939 * varobj.c (instantiate_pretty_printer): Remove duplicate
4940 'return'.
4941
4942 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
4943
4944 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4945 if neither saved value nor register available (e.g. signal frame).
4946
4947 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4948
4949 * macroexp.c (expand): Avoid uninitialized variable
4950 compiler warning.
4951
4952 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4953
4954 * breakpoint.c (break_range_command): Fix typo in comment.
4955
4956 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4957 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4958
4959 Implement support for PowerPC BookE ranged breakpoints.
4960 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4961 * breakpoint.h (struct bp_target_info) <length>: New member
4962 variable.
4963 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4964 instead of struct breakpoint as argument, and also add ASPACE
4965 and BP_ADDR arguments. Update all callers.
4966 (struct breakpoint_ops) <print_one_detail>: New method.
4967 (struct breakpoint) <addr_string_range_end>: New member variable.
4968 * breakpoint.c (breakpoint_location_address_match): Add function
4969 prototype.
4970 (insert_bp_location): Set bl->target_info.length.
4971 (breakpoint_here_p): Call breakpoint_location_address_match.
4972 (moribund_breakpoint_here_p): Likewise.
4973 (regular_breakpoint_inserted_here_p): Likewise.
4974 (breakpoint_thread_match): Likewise.
4975 (bpstat_stop_status): Likewise.
4976 (bpstat_check_location): Move call to
4977 breakpoint_ops.breakpoint_hit to the top.
4978 (print_one_breakpoint_location): Call
4979 breakpoint_ops.print_one_detail if available.
4980 (breakpoint_address_match_range): New function.
4981 (breakpoint_location_address_match): Likewise.
4982 (breakpoint_locations_match): Compare the length field of the
4983 locations too.
4984 (hw_breakpoint_used_count): Count resources used by all locations
4985 in a breakpoint, and use breakpoint_ops.resources_needed if
4986 available.
4987 (breakpoint_hit_ranged_breakpoint): New function.
4988 (resources_needed_ranged_breakpoint): Likewise.
4989 (print_it_ranged_breakpoint): Likewise.
4990 (print_one_ranged_breakpoint): Likewise.
4991 (print_one_detail_ranged_breakpoint): Likewise.
4992 (print_mention_ranged_breakpoint): Likewise.
4993 (print_recreate_ranged_breakpoint): Likewise.
4994 (ranged_breakpoint_ops): New structure.
4995 (find_breakpoint_range_end): New function.
4996 (break_range_command): Likewise.
4997 (delete_breakpoint): Free addr_string_range_end.
4998 (update_breakpoint_locations): Add SALS_END argument. Update
4999 all callers. Calculate breakpoint length if a non-zero SALS_END
5000 is given. Call breakpoint_locations_match instead of
5001 breakpoint_address_match.
5002 (reset_breakpoint): Find SaL of the end of the range if B is a
5003 ranged breakpoint.
5004 (_initialize_breakpoint): Register break-range command.
5005 * defs.h (print_core_address): Add function prototype.
5006 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
5007 function.
5008 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
5009 (ppc_linux_remove_hw_breakpoint): Likewise.
5010 (_initialize_ppc_linux_nat): Initialize
5011 to_ranged_break_num_registers.
5012 * target.c (update_current_target): Add comment about
5013 to_ranged_break_num_registers.
5014 (target_ranged_break_num_registers): New function.
5015 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5016 New method.
5017 (target_ranged_break_num_registers): Add function prototype.
5018 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
5019 * utils.c (print_core_address): ... here.
5020
5021 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
5022
5023 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
5024 variable compiler warning.
5025
5026 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
5027
5028 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
5029 code from here ...
5030 (re_set_breakpoint): ... to here ...
5031 (addr_string_to_sals): ... and here.
5032
5033 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
5034
5035 * Makefile.in (SFILES): Add missing C sources.
5036 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
5037 Add missing headers.
5038
5039 2011-03-29 Mike Frysinger <vapier@gentoo.org>
5040
5041 * .gitignore: New file.
5042
5043 2011-03-29 Mike Frysinger <vapier@gentoo.org>
5044
5045 * NEWS: Mention new cfi device simulation.
5046
5047 2011-03-29 Tom Tromey <tromey@redhat.com>
5048
5049 * dwarf2read.c (fixup_partial_die): Handle linkage name on
5050 otherwise anonymous types.
5051 (dwarf2_name): Likewise.
5052 * valops.c (value_struct_elt_for_reference): Refine artificial
5053 type logic. Call error if j==-1.
5054
5055 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
5056
5057 Fix false GCC warning.
5058 * infcall.c (find_function_addr): Initialize funaddr.
5059
5060 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
5061
5062 Fix mingw compilation with --enable-targets=all.
5063 * remote-mips.c (gdb_usleep.h): Include header.
5064 (mips_enter_debug): Use gdb_usleep instead of sleep.
5065
5066 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5067
5068 Support resolution of STT_GNU_IFUNC via breakpoints.
5069 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
5070 bp_gnu_ifunc_resolver_return.
5071 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
5072 the loop. Support bp_gnu_ifunc_resolver and
5073 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
5074 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
5075 breakpoints.
5076 (bptype_string, print_one_breakpoint_location): Support
5077 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
5078 (user_settable_breakpoint): Return true also for
5079 bp_gnu_ifunc_resolver.
5080 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
5081 bp_gnu_ifunc_resolver_return.
5082 (set_breakpoint_location_function): New parameter explicit_loc,
5083 describe it. Call find_pc_partial_function_gnu_ifunc with new
5084 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
5085 EXPLICIT_LOC is not set.
5086 (set_raw_breakpoint): Set EXPLICIT_LOC for
5087 set_breakpoint_location_function.
5088 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
5089 set_breakpoint_location_function.
5090 (mention): Support bp_gnu_ifunc_resolver and
5091 bp_gnu_ifunc_resolver_return.
5092 (add_location_to_breakpoint): Set EXPLICIT_LOC for
5093 set_breakpoint_location_function.
5094 (update_breakpoint_locations): Remove static.
5095 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
5096 bp_gnu_ifunc_resolver_return.
5097 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
5098 bp_gnu_ifunc_resolver_return.
5099 (update_breakpoint_locations): New declaration.
5100 * elfread.c: Include gdbthread.h and regcache.h.
5101 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
5102 functions.
5103 (elf_gnu_ifunc_fns): Install them.
5104 * minsyms.c (stub_gnu_ifunc_resolver_stop)
5105 (stub_gnu_ifunc_resolver_return_stop): New functions.
5106 (stub_gnu_ifunc_fns): Install them.
5107 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
5108 and gnu_ifunc_resolver_return_stop.
5109 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
5110
5111 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5112
5113 STT_GNU_IFUNC reader implementation.
5114 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
5115 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
5116 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
5117 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
5118 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
5119 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
5120 (elf_gnu_ifunc_resolve_addr): New.
5121 (elf_symfile_read): Call elf_rel_plt_read.
5122 (elf_gnu_ifunc_fns): New.
5123 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
5124 Install elf_gnu_ifunc_fns.
5125 * infcall.c (find_function_return_type): New function.
5126 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
5127 * minsyms.c (stub_gnu_ifunc_resolve_addr)
5128 (stub_gnu_ifunc_resolve_name): New functions.
5129 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
5130 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
5131 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
5132
5133 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5134
5135 Code cleanup for later STT_GNU_IFUNC support.
5136 * infcall.c (find_function_addr): Remove variable code, use explicit
5137 dereferences for it. Move VALUE_TYPE initialization later.
5138
5139 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5140
5141 GDB find_pc_partial_function support for STT_GNU_IFUNC.
5142 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
5143 (clear_pc_function_cache): Clear it.
5144 (find_pc_partial_function): Rename to ...
5145 (find_pc_partial_function_gnu_ifunc): ... this function. New
5146 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
5147 (find_pc_partial_function): New wrapper for this function.
5148 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
5149
5150 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5151
5152 GDB internal type support for STT_GNU_IFUNC.
5153 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
5154 (elf_symtab_read): Set mst_text_gnu_ifunc for
5155 BSF_GNU_INDIRECT_FUNCTION.
5156 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
5157 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
5158 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
5159 nodebug_got_plt_symbol.
5160 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
5161 (TYPE_GNU_IFUNC): New.
5162 (struct main_type): New field flag_gnu_ifunc.
5163 (struct builtin_type): New field builtin_func_func.
5164 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
5165 nodebug_got_plt_symbol.
5166 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
5167 (in_gnu_ifunc_stub): New.
5168 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
5169 mst_text_gnu_ifunc.
5170 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
5171 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
5172 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
5173 in_gnu_ifunc_stub.
5174 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
5175 * symtab.c (search_symbols): Likewise.
5176 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
5177 and mst_slot_got_plt.
5178 (in_gnu_ifunc_stub): New declaration.
5179
5180 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5181
5182 Support a ring of related breakpoints.
5183 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
5184 other functions, add gdb_assert.
5185 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
5186 watchpoint_del_at_next_stop.
5187 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
5188 (bpstat_stop_status): Handle ring in related_breakpoint.
5189 (set_raw_breakpoint_without_location): Initialize ring in
5190 related_breakpoint.
5191 (delete_breakpoint): Handle ring in related_breakpoint, use
5192 watchpoint_del_at_next_stop.
5193 (map_breakpoint_numbers): Handle ring in related_breakpoint.
5194
5195 2011-03-28 Tom Tromey <tromey@redhat.com>
5196
5197 PR symtab/12441:
5198 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
5199 with `language_minimal'.
5200
5201 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
5202
5203 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
5204 instead of checking for STT_ARM_TFUNC symbol type.
5205
5206 2011-03-25 Tom Tromey <tromey@redhat.com>
5207
5208 * linespec.c (symbol_found): Restore line-based result for
5209 non-LOC_LABEL symbols.
5210
5211 2011-03-25 Kai Tietz <ktietz@redhat.com>
5212
5213 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
5214 instead of strcmp for comparison.
5215 (tui_source_is_displayed): Likewise.
5216 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
5217
5218 2011-03-24 Mark Wielaard <mjw@redhat.com>
5219
5220 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
5221 complaint.
5222 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5223 (find_partial_die_in_comp_unit): Likewise in comment.
5224 (read_attribute_value): Likewise.
5225 (lookup_die_type): Likewise.
5226 (dwarf_form_name): Likewise.
5227 (dump_die_shallow): Likewise.
5228 (follow_die_ref_or_sig): Likewise.
5229
5230 2011-03-24 Tom Tromey <tromey@redhat.com>
5231
5232 PR breakpoints/11816:
5233 * linespec.c (decode_line_1): Parse `function:label' linespecs.
5234 (decode_compound): Update.
5235 (find_function_symbol): New function.
5236 (decode_dollar): Update.
5237 (decode_label): Add 'function_symbol' parameter. Handle
5238 function-relative labels.
5239 (decode_variable): Update.
5240 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
5241 not its line. Set `special_display' and canonical name for
5242 labels.
5243
5244 2011-03-24 Tom Tromey <tromey@redhat.com>
5245
5246 * linespec.h (struct linespec_result) <special_display>: New
5247 field.
5248 * breakpoint.h (struct breakpoint) <display_canonical>: New
5249 field.
5250 * breakpoint.c (print_breakpoint_location): Respect
5251 display_canonical.
5252 (create_breakpoint_sal): Add 'display_canonical' parameter.
5253 (create_breakpoints_sal): Update.
5254 (create_breakpoint): Update.
5255
5256 2011-03-24 Tom Tromey <tromey@redhat.com>
5257
5258 * symtab.c (decode_line_spec): Update.
5259 * linespec.c (build_canonical_line_spec): Change type of
5260 'canonical'.
5261 (decode_line_2, decode_line_1, decode_objc, decode_compound)
5262 (find_method, decode_all_digits, decode_dollar, decode_label)
5263 (symbol_found): Likewise.
5264 (init_linespec_result): New function.
5265 * breakpoint.c (struct captured_parse_breakpoint_args)
5266 <canonical_p>: New field, replaces addr_string_p.
5267 (create_breakpoints_sal): Add 'canonical' parameter, replacing
5268 'addr_string'.
5269 (parse_breakpoint_sals): Likewise.
5270 (do_captured_parse_breakpoint): Update.
5271 (create_breakpoint): Use struct linespec_result.
5272 (until_break_command): Update.
5273 (breakpoint_re_set_one): Update.
5274 (decode_line_spec_1): Update.
5275 * linespec.h (struct linespec_result): New.
5276 (init_linespec_result): Declare.
5277
5278 2011-03-23 Pedro Alves <pedro@codesourcery.com>
5279
5280 * regcache.c (regcache_raw_read): If the target didn't supply a
5281 given raw register, mark it as unavailable.
5282
5283 2011-03-23 Kai Tietz <ktietz@redhat.com>
5284
5285 * breakpoint.c (clear_command): Use filename_cmp
5286 instead of strcmp for comparison.
5287 * buildsym.c (watch_main_source_file_lossage): Likewise.
5288 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
5289 checking just for slash.
5290 * dbxread.c (read_dbx_symtab): Use lbasename instead of
5291 strrchr and filename_cmp instead of strcmp for filenames.
5292 (add_old_header_file): Use filename_cmp
5293 instead of strcmp for comparison.
5294 * exec.c (exec_set_section_address): Likewise.
5295 * macrotab.c (macro_lookup_inclusion): Likewise.
5296 (macro_lookup_inclusion): Likewise.
5297 * elfread.c (_initialize_elfread): Likewise.
5298 (elfstab_offset_sections): Likewise.
5299 (elfstab_offset_sections): Use lbasename instead of
5300 strrchr.
5301 * mdebugread.c (parse_partial_symbols): Likewise.
5302 (arse_partial_symbols): Use filename_(n)cmp instead of
5303 str(n)cmp for comparison.
5304 * minsyms.c (lookup_minimal_symbol): Likewise.
5305 * psymtab.c (read_psymtabs_with_filename): Likewise.
5306 * solib.c (solib_read_symbols): Likewise.
5307 (reload_shared_libraries_1): Likewise.
5308 * symmisc.c (maintenance_print_symbols): Likewise.
5309 * symfile.c (separate_debug_file_exists): Likewise.
5310 (reread_symbols): Likewise.
5311 (find_separate_debug_file_by_debuglink): Likewise.
5312 * remote-fileio.c (remote_fileio_func_rename): Likewise.
5313 * source.c (add_path): Likewise.
5314 * symtab.c (filename_seen): Likewise.
5315 (file_matches): Likewise.
5316 (print_symbol_info): Likewise.
5317 (maybe_add_partial_symtab_filename): Likewise.
5318 (make_source_files_completion_list): Likewise.
5319 * xml-syscall.c (init_sysinfo): Likewise.
5320 * windows-nat.c (_initialize_check_for_gdb_ini): Use
5321 IS_DIR_SEPARATOR for checking for trailing path separator.
5322
5323 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5324
5325 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
5326 label abort_expression.
5327 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
5328 DWARF_VALUE_OPTIMIZED_OUT.
5329
5330 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5331
5332 Code cleanup.
5333 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
5334 to linkage_name. Invert its value. Update the function comment.
5335 (c_type_print_varspec_suffix): Invert it at the caller.
5336 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
5337
5338 2011-03-22 Pedro Alves <pedro@codesourcery.com>
5339
5340 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
5341 errors when reading the `stop_pc'.
5342 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
5343 get_frame_pc.
5344
5345 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5346
5347 * NEWS: Document gdb.Write stream keyword.
5348
5349 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5350
5351 Revert:
5352 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5353 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5354 (dwarf2_add_field): Fix new_field->accessibility for
5355 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5356
5357 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5358
5359 PR python/12183
5360
5361 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
5362 other error classes. Do not print stack trace.
5363
5364 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5365
5366 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5367 (dwarf2_add_field): Fix new_field->accessibility for
5368 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5369
5370 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
5371
5372 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
5373 encountering a load via a non-SP register.
5374
5375 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
5376
5377 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
5378 field in returned unwinder.
5379
5380 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5381
5382 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
5383
5384 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5385
5386 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
5387 of xmalloc.
5388
5389 2012-03-18 Pedro Alves <pedro@codesourcery.com>
5390
5391 * frame.c (frame_unwind_register): Throw an error if unwinding the
5392 register failed.
5393 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
5394 an unwind stop reason.
5395 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
5396 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
5397 UNWIND_UNAVAILABLE>: New.
5398 * inline-frame.c (inline_frame_unwind): Install
5399 default_frame_unwind_stop_reason.
5400 * frame-unwind.c: Include "exceptions.h".
5401 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
5402 (default_frame_unwind_stop_reason): New.
5403 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
5404 (default_frame_unwind_stop_reason): Declare.
5405 (struct frame_unwind) <stop_reason>: New function pointer.
5406
5407 * dummy-frame.c: Install default_frame_unwind_stop_reason.
5408 * dwarf2-frame.c: Include exceptions.h.
5409 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
5410 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
5411 computing the CFA. If such an error was thrown, set
5412 unavailable_retaddr.
5413 (dwarf2_frame_unwind_stop_reason): New.
5414 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
5415 unavailable.
5416 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
5417 (dwarf2_signal_frame_unwind): Ditto.
5418
5419 * amd64-tdep.c: Include "exceptions.h".
5420 (struct amd64_frame_cache): New field "base_p".
5421 (amd64_init_frame_cache): Clear it.
5422 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
5423 Avoid reading registers with functions that throw if the register
5424 is not necessary to compute the frame base.
5425 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5426 swallowing NOT_AVAILABLE_ERROR.
5427 (amd64_frame_unwind_stop_reason): New.
5428 (amd64_frame_this_id): Don't build a frame id if the frame base
5429 was unavailable.
5430 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
5431 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5432 base_p if the frame base was computable.
5433 (amd64_sigtramp_frame_unwind_stop_reason): New.
5434 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
5435 frame base was unavailable.
5436 (amd64_sigtramp_frame_unwind): Install
5437 amd64_sigtramp_frame_unwind_stop_reason.
5438 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5439 base_p if the frame base was computable.
5440 (amd64_epilogue_frame_unwind_stop_reason): New.
5441 (amd64_epilogue_frame_this_id): Don't build a frame id if the
5442 frame base was unavailable.
5443 (amd64_epilogue_frame_unwind): Install
5444 amd64_epilogue_frame_unwind_stop_reason.
5445 * i386-tdep.c: Include "exceptions.h".
5446 (struct i386_frame_cache): New field "base_p".
5447 (i386_init_frame_cache): Clear it.
5448 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
5449 Avoid reading registers with functions that throw if the register
5450 is not necessary to compute the frame base.
5451 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5452 swallowing NOT_AVAILABLE_ERROR.
5453 (i386_frame_unwind_stop_reason): New.
5454 (i386_frame_this_id): Don't build a frame id if the frame base was
5455 unavailable.
5456 (i386_frame_prev_register): Handle unavailable SP.
5457 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
5458 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5459 base_p if the frame base was computable.
5460 (i386_epilogue_frame_unwind_stop_reason): New.
5461 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
5462 base was unavailable.
5463 (i386_epilogue_frame_unwind): Install
5464 i386_epilogue_frame_unwind_stop_reason.
5465 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5466 base_p if the frame base was computable.
5467 (i386_sigtramp_frame_unwind_stop_reason): New.
5468 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
5469 base was unavailable.
5470 (i386_sigtramp_frame_unwind): Install
5471 i386_sigtramp_frame_unwind_stop_reason.
5472 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
5473 type's size, not the register's.
5474 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
5475
5476 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
5477 default_frame_unwind_stop_reason.
5478 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
5479 (alpha_heuristic_frame_unwind): Ditto.
5480 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
5481 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
5482 * avr-tdep.c (avr_frame_unwind): Ditto.
5483 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
5484 Ditto.
5485 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
5486 * frv-tdep.c (frv_frame_unwind): Ditto.
5487 * h8300-tdep.c (h8300_frame_unwind): Ditto.
5488 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
5489 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
5490 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
5491 (hppa_stub_frame_unwind): Ditto.
5492 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
5493 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
5494 (ia64_libunwind_frame_unwind)
5495 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
5496 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
5497 * lm32-tdep.c (lm32_frame_unwind): Ditto.
5498 * m32c-tdep.c (m32c_unwind): Ditto.
5499 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
5500 * m32r-tdep.c (m32r_frame_unwind): Ditto.
5501 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
5502 * m68k-tdep.c (m68k_frame_unwind): Ditto.
5503 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
5504 * m88k-tdep.c (m88k_frame_unwind): Ditto.
5505 * mep-tdep.c (mep_frame_unwind): Ditto.
5506 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
5507 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
5508 (mips_stub_frame_unwind): Ditto.
5509 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
5510 * moxie-tdep.c (moxie_frame_unwind): Ditto.
5511 * mt-tdep.c (mt_frame_unwind): Ditto.
5512 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
5513 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
5514 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
5515 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
5516 (s390_sigtramp_frame_unwind): Ditto.
5517 * score-tdep.c (score_prologue_unwind): Ditto.
5518 * sh-tdep.c (sh_frame_unwind): Ditto.
5519 * sh64-tdep.c (sh64_frame_unwind): Ditto.
5520 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
5521 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
5522 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
5523 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
5524 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
5525 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
5526 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
5527 (sparc64obsd_trapframe_unwind): Ditto.
5528 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
5529 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
5530 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
5531 * v850-tdep.c (v850_frame_unwind): Ditto.
5532 * vax-tdep.c (vax_frame_unwind): Ditto.
5533 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
5534 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
5535 * xtensa-tdep.c (xtensa_unwind): Ditto.
5536
5537 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5538
5539 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
5540 there's always a frame. Use get_frame_pc_if_available instead of
5541 get_frame_pc, and if there's no PC available, don't look up a
5542 symtab.
5543
5544 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5545
5546 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
5547 unavailable PC.
5548
5549 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5550
5551 * tracepoint.c (set_traceframe_context): Handle unavailable PC
5552 gracefully.
5553
5554 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5555
5556 * frame.h (frame_unwind_caller_pc_if_available): Declare.
5557 * frame.c (frame_unwind_caller_pc_if_available): New.
5558 * stack.c (frame_info): Handle unavailable PC.
5559
5560 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5561
5562 * frame.c (frame_unwind_pc): Rename to ...
5563 (frame_unwind_pc_if_available): ... this. New `pc' output
5564 parameter. Change return type to int. Gracefully handle
5565 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
5566 happened, or 1 otherwise.
5567 (frame_unwind_pc): Reimplement on top of
5568 frame_unwind_pc_if_available.
5569 (get_frame_func): Rename to ...
5570 (get_frame_func_if_available): New `pc' output parameter. Change
5571 return type to int. Gracefully handle the PC not being available.
5572 (get_frame_func): Reimplement on top of
5573 get_frame_func_if_available.
5574 (select_frame): Handle the PC being unavailable.
5575 (get_prev_frame): Handle the PC being unavailable.
5576 (get_frame_pc_if_available): New.
5577 (get_frame_address_in_block_if_available): New.
5578 (find_frame_sal): Handle the frame PC not being available.
5579 * frame.h (get_frame_pc_if_available): Declare.
5580 (get_frame_address_in_block_if_available): Declare.
5581 (get_frame_func_if_available): Declare.
5582 * stack.c (print_frame_info): Handle the PC being unavailable.
5583 (find_frame_funname): Ditto.
5584 (print_frame): Handle the PC being unavailable.
5585 (get_frame_language): Ditto.
5586 * blockframe.c (get_frame_block): Ditto.
5587 * macroscope.c (default_macro_scope): Ditto.
5588 * tui/tui-stack.c (tui_show_frame_info): Ditto.
5589
5590 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5591
5592 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
5593 NOT_AVAILABLE_ERROR when evaluating the location expression.
5594
5595 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5596
5597 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
5598 returning that the register piece is unavailable/optimized out.
5599 (write_pieced_value): Handle get_frame_register_bytes returning
5600 that the register piece is unavailable/optimized out when doing a
5601 read-modify write of a bitfield.
5602 * findvar.c (value_from_register): Handle get_frame_register_bytes
5603 returning that the register piece is unavailable/optimized out.
5604 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
5605 and `unavailablep'. Throw error on bad debug info. Use
5606 frame_register instead of frame_register_read, to fill in the new
5607 arguments.
5608 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
5609 and `unavailablep'.
5610 * valops.c: (value_assign): Adjust, and handle
5611 get_frame_register_bytes failing.
5612 * spu-tdep.c: Include exceptions.h.
5613 (spu_software_single_step): Adjust, and handle
5614 get_frame_register_bytes failing.
5615 (spu_get_longjmp_target): Ditto.
5616 * gdbarch.sh (register_to_value): Change to return int. New
5617 parameters `optimizedp' and `unavailablep'.
5618 * gdbarch.h, gdbarch.c: Regenerate.
5619 * i386-tdep.c (i386_register_to_value): Adjust to new
5620 gdbarch_register_to_value interface.
5621 * i387-tdep.c (i387_register_to_value): Ditto.
5622 * i387-tdep.h (i387_register_to_value): Ditto.
5623 * alpha-tdep.c (alpha_register_to_value): Ditto.
5624 * ia64-tdep.c (ia64_register_to_value): Ditto.
5625 * m68k-tdep.c (m68k_register_to_value): Ditto.
5626 * mips-tdep.c (mips_register_to_value): Ditto.
5627 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
5628
5629 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5630
5631 * findvar.c (value_of_register): Mark the value as unavailable, if
5632 the register is unavailable.
5633 * frame.h (frame_register_unwind): New `unavailablep' parameter.
5634 (frame_register): New `unavailablep' parameter.
5635 (frame_register_read): Update comment.
5636 * frame.c (frame_register_unwind): New `unavailablep' parameter.
5637 Set it if the register is unavailable. If the register is
5638 unavailable, clear the output buffer.
5639 (frame_register): New `unavailablep' parameter. Pass it down.
5640 (frame_unwind_register): Adjust.
5641 (put_frame_register): Adjust.
5642 (frame_register_read): Adjust. Also return false if the register
5643 is not available.
5644 (frame_register_unwind_location): Adjust.
5645 * sentinel-frame.c (sentinel_frame_prev_register): If the register
5646 is unavailable, mark the value accordingly.
5647 * stack.c (frame_info): Handle unavailable registers.
5648
5649 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5650
5651 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
5652 simplify, using regcache_cooked_read.
5653
5654 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5655
5656 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
5657 (regcache_raw_read_unsigned, regcache_raw_read_signed)
5658 (regcache_raw_read_unsigned, regcache_raw_read_part)
5659 (regcache_cooked_read, regcache_cooked_read_signed)
5660 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
5661 (regcache_cooked_read_ftype): Change return to enum
5662 register_status.
5663 * regcache.c: Include exceptions.h
5664 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
5665 (do_cooked_read): Change return to enum register_status. Always
5666 forward to regcache_cooked_read.
5667 (regcache_raw_read): Change return to enum register_status. If
5668 the register is not REG_VALID, memset the buffer. Return the
5669 register's status.
5670 (regcache_raw_read_signed): Handle non-REG_VALID registers and
5671 return the register's status.
5672 (regcache_raw_read_unsigned): Ditto.
5673 (regcache_cooked_read): Change return to enum register_status.
5674 Assert that with read-only regcaches, the register's status must
5675 be known. If the regcache is read-only, and the register is not
5676 REG_VALID, memset the buffer. Return the register's status.
5677 (regcache_cooked_read_signed): Change return to enum
5678 register_status. Handle non-REG_VALID registers and return the
5679 register's status.
5680 (regcache_cooked_read_unsigned): Change return to enum
5681 register_status. Handle non-REG_VALID registers and return the
5682 register's status.
5683 (regcache_xfer_part, regcache_raw_read_part)
5684 (regcache_cooked_read_part): Change return to enum
5685 register_status. Return the register's status.
5686 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
5687 unavailable.
5688 (regcache_dump): Handle unavailable cooked registers.
5689 * frame.c (do_frame_register_read): Adjust interface to match
5690 regcache_cooked_read_ftype.
5691 * gdbarch.sh (pseudo_register_read): Change return to enum
5692 register_status.
5693 * gdbarch.h, gdbarch.c: Regenerate.
5694
5695 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
5696 register_status.
5697 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
5698 register_status. If reading a raw register indicates the raw
5699 register is not valid, return the raw register's status,
5700 otherwise, return REG_VALID.
5701 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
5702 register_status. Handle non-REG_VALID raw registers and return
5703 the register's status.
5704 * arm-tdep.c (arm_neon_quad_read)
5705 (arm_pseudo_read): Change return to enum register_status. Handle
5706 non-REG_VALID raw registers and return the register's status.
5707 * avr-tdep.c (avr_pseudo_register_read): Ditto.
5708 * frv-tdep.c (frv_pseudo_register_read): Ditto.
5709 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5710 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5711 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5712 register_status.
5713 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5714 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5715 (m32c_part_write, m32c_cat_read, m32c_cat_write)
5716 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5717 (m32c_pseudo_register_read): Change return to enum
5718 register_status. Adjust.
5719 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5720 enum register_status. Return the register's status.
5721 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5722 register_status. Return the register's status.
5723 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5724 * mips-tdep.c (mips_pseudo_register_read): Ditto.
5725 * mt-tdep.c (mt_pseudo_register_read): Ditto.
5726 * rs6000-tdep.c (move_ev_register_func): New typedef.
5727 (e500_move_ev_register): Use it. Change return to enum
5728 register_status. Return the register's status.
5729 (do_regcache_raw_read): New function.
5730 (do_regcache_raw_write): New function.
5731 (e500_pseudo_register_read): Change return to enum
5732 register_status. Return the register's status. Use
5733 do_regcache_raw_read.
5734 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
5735 (dfp_pseudo_register_read): Change return to enum register_status.
5736 Return the register's status.
5737 (vsx_pseudo_register_read): Ditto.
5738 (efpr_pseudo_register_read): Ditto.
5739 (rs6000_pseudo_register_read): Ditto.
5740 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5741 register_status. Return the register's status.
5742 * sh64-tdep.c (pseudo_register_read_portions): New function.
5743 (sh64_pseudo_register_read): Change return to enum
5744 register_status. Use pseudo_register_read_portions. Return the
5745 register's status.
5746 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5747 register_status. Return the register's status.
5748 * sh-tdep.c (pseudo_register_read_portions): New function.
5749 (sh_pseudo_register_read): Change return to enum register_status.
5750 Use pseudo_register_read_portions. Return the register's status.
5751 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5752 enum register_status. Return the register's status.
5753 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5754 * spu-tdep.c (spu_pseudo_register_read_spu)
5755 (spu_pseudo_register_read): Ditto.
5756 * xtensa-tdep.c (xtensa_register_read_masked)
5757 (xtensa_pseudo_register_read): Ditto.
5758 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5759
5760 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5761
5762 * python/py-value.c (valpy_getitem): Fix formatting of error function
5763 call.
5764
5765 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5766
5767 ARI fixes: Add missing internationalization markups throughout
5768 C source files.
5769 * darwin-nat-info.c: Ditto.
5770 * record.c: Ditto.
5771 * remote.c: Ditto.
5772 * mi/mi-main.c: Ditto.
5773
5774 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5775
5776 ARI fixes: Add missing internationalization markups throughout
5777 yacc files.
5778 * c-exp.y: Ditto.
5779 * cp-name-parser.y: Ditto.
5780 * f-exp.y: Ditto.
5781 * m2-exp.y: Ditto.
5782 * objc-exp.y: Ditto.
5783 * p-exp.y: Ditto.
5784
5785 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5786
5787 ARI fixes: Messages should have no trailing new lines.
5788 * darwin-nat.c (mach_check_error): Remove trailing new line from
5789 warning function call message.
5790 * record.c (bfdcore_read): Idem for error call.
5791
5792 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5793
5794 * common/signals.c (target_signal_from_host): Add _ markup to error
5795 function call message.
5796 (target_signal_to_host): Add _ markup and remove trailing new line
5797 from warning call message.
5798 (target_signal_from_command): Add _ markup to error function call
5799 message.
5800
5801 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
5802
5803 PR python/12149
5804
5805 * python/python.c (gdbpy_write): Accept a stream argument and
5806 operate to the appropriate stream.
5807 (gdbpy_flush): Likewise.
5808 (_initialize_python): Add stream constants.
5809 (finish_python_initialization): Add GdbOutputErrorFile class.
5810
5811 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5812
5813 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5814
5815 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5816
5817 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
5818 to store_signed_integer. Add debug message when relocating CALL
5819 instructions. Fix formatting of debug message.
5820 * i386-tdep.c (i386_relocate_instruction): Ditto.
5821
5822 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5823
5824 * target.h (struct target_ops): Remove to_lookup_symbol field.
5825 (target_lookup_symbol): Delete macro.
5826 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5827 (update_current_target, setup_target_debug): Remove handling
5828 of to_lookup_symbol target_ops field.
5829 * ada-tasks.c (get_known_tasks_addr): Remove use of
5830 target_lookup_symbol.
5831 * coffread.c (coff_symtab_read): Likewise.
5832 * dbxread.c (read_dbx_symtab): Ditto.
5833
5834 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5835
5836 PR gdb/12116:
5837 * configure.ac: Add getthrds declaration check.
5838 * configure, config.in: Regenerate.
5839 * aix-thread.c (getthrds): Declare only if not already declared
5840 in procinfo.h. More declaration out of get_signaled_thread to
5841 global scope.
5842
5843 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
5844
5845 * python/py-symtab.c: Populate symtab_object_methods,
5846 sal_object_methods.
5847 (stpy_is_valid): New function.
5848 (salpy_is_valid): Ditto.
5849 * python/py-symbol.c: Declare symbol_object_methods. Populate.
5850 (sympy_is_valid): New function.
5851 * python/py-objfile.c: Declare objfile_object_methods. Populate.
5852 (objfpy_is_valid): New function.
5853 * python/py-inferior.c: Populate inferior_object_methods.
5854 (infpy_is_valid): New function.
5855 * python/py-infthread.c: Populate thread_object_methods.
5856 (thpy_is_valid): New function.
5857 * python/py-block.c: Declare block_object_methods. Populate. Declare
5858 block_iterator_object_methods. Populate.
5859 (blpy_is_valid): New function.
5860 (blpy_iter_is_valid): Ditto.
5861
5862 2011-03-16 Keith Seitz <keiths@redhat.com>
5863
5864 * linespec.c (find_methods): Canonicalize NAME before looking
5865 up the symbol.
5866 (name_end): New function.
5867 (keep_name_info): New function.
5868 (decode_line_1): Use keep_name_info.
5869 (decode_compound): Likewise.
5870 * cli/cli-utils.h (remove_trailing_whitespace): New function.
5871 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5872
5873 PR c++/12273
5874 * linespec.c (locate_first_half): Keep overload information, too.
5875 (decode_compound): Use a string to represent break characters
5876 to escape the loop.
5877 If P points to a break character, do not increment it.
5878 For C++ and Java, keep overload information and relevant keywords.
5879 If we cannot find a symbol, search the minimal symbols.
5880
5881 PR c++/11734
5882 * linespec.c (decode_compound): Rename SAVED_ARG to
5883 THE_REAL_SAVED_ARG.
5884 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5885 single-quotes.
5886 Pass a valid block to lookup_symbol.
5887 (lookup_prefix_sym): Likewise.
5888 (find_method): Construct search name based on SYM_CLASS instead
5889 of SAVED_ARG.
5890 * psymtab.c (lookup_partial_symbol): Add language parameter.
5891 (lookup_symbol_aux_psymtabs): Likewise.
5892 Don't assume that the psymtab we found was the right one. Search
5893 for the desired symbol in the symtab to be certain.
5894 (psymtab_search_name): New function.
5895 (lookup_partial_symbol): Use psymtab_search_name.
5896 Add language parameter.
5897 (read_symtabs_for_function): Add language parameter and pass to
5898 lookup_partial_symbol.
5899 (find_symbol_file_from_partial): Likewise.
5900
5901 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
5902
5903 PR gdb/12528
5904 * dwarf2read.c (noop_record_line): New function.
5905 (dwarf_decode_lines): Ignore line tables for GCd functions.
5906
5907 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5908
5909 Fix ARI warnings about new lines at the end of messages, which
5910 are unneeded as there is a new line added at the end of the message
5911 automatically.
5912 * darwin-nat.c (darwin_stop_inferior): Ditto.
5913 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5914 * dfp.c (decimal_to_number): Ditto.
5915 * exec.c (print_section_info): Ditto.
5916 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5917 * osdata.c (get_osdata): Ditto.
5918 * record.c (bfdcore_write): Ditto.
5919 * remote-mips.c (mips_readchar): Ditto.
5920 * remote.c (read_ptid): Ditto.
5921 * ser-mingw.c (ser_windows_raw): Ditto.
5922 * tracepoint.c (add_local_symbols): Ditto.
5923 * windows-nat.c (fake_create_process): Ditto.
5924
5925 2011-03-16 Tom Tromey <tromey@redhat.com>
5926
5927 * tracepoint.c (stop_tracing): Don't declare.
5928 * event-top.c (after_char_processing_hook): Add `(void)'.
5929
5930 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
5931
5932 * NEWS: Add Parameter sub-classing description.
5933
5934 2011-03-16 Kai Tietz <ktietz@redhat.com>
5935
5936 * MAINTAINERS: Update my e-mail address.
5937
5938 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
5939
5940 * MAINTAINERS: Add myself for write after approval privileges.
5941
5942 2011-03-15 Michael Snyder <msnyder@vmware.com>
5943
5944 * frame.c (find_frame_sal): Assert sym is not null.
5945
5946 * dbxread.c (process_one_symbol): Assert 'name' is not null.
5947
5948 * objc-lang.c (selectors_info): Check strchr for null result.
5949
5950 * stabsread.c (define_symbol): Guard against bad stabstring input.
5951
5952 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5953
5954 Remove trailing spaces and tabulations from pascal language
5955 support sources.
5956 p-exp.y: Ditto.
5957 p-lang.c: Ditto.
5958 p-lang.h: Ditto.
5959 p-valprint.c: Ditto.
5960
5961 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5962
5963 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5964 than LOW. Comment it.
5965 (read_partial_die): Call complaint for inappropriate zero LOWPC or
5966 HIGHPC not strictly higher than LOWPC.
5967
5968 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5969
5970 Fix formatting of function declarations returning a pointer in
5971 previous commit.
5972 * varobj.c (varobj_add_child): Ditto.
5973 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5974 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5975
5976 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5977
5978 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5979 for the "generic" vector ABI used with GCC 4.3 and later.
5980 (ppc64_sysv_abi_return_value): Likewise.
5981
5982 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5983
5984 * infcall.c (call_function_by_hand): Function return value is
5985 always a non_lval, even when using struct_return.
5986
5987 2011-03-15 Pedro Alves <pedro@codesourcery.com>
5988
5989 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5990 (map_display_numbers): New.
5991 (do_delete_display): New.
5992 (undisplay_command): Use map_display_numbers.
5993 (do_enable_disable_display): New.
5994 (enable_disable_display_command): New function.
5995 (enable_display): Delete.
5996 (enable_display_command): New.
5997 (disable_display_command): Reimplement.
5998 (_initialize_printcmd): Adjust "enable display" command to use
5999 `enable_display_command' as callback.
6000
6001 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
6002
6003 * NEWS: Add Python breakpoint 'stop' operation.
6004
6005 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
6006
6007 * NEWS: Delete duplicate entry. Fix typo.
6008
6009 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
6010
6011 Fix ARI warning about function names in first column.
6012 Put prototype declaration on same line as return type.
6013 * objc-exp.y: Ditto.
6014 * p-exp.y: Ditto.
6015 * python/py-stopevent.h: Ditto.
6016 For long function names, split parameters to
6017 allow function name on same line as return type.
6018 * solib-pa64.c: Ditto.
6019 * varobj.c: Ditto.
6020 * varobj.h: Ditto.
6021 For long function declaration, use single line.
6022 * hppa-tdep.h: Ditto.
6023 * inferior.h: Ditto.
6024
6025 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
6026
6027 * python/python.h: Declare gdbpy_should_stop and
6028 gdbpy_breakpoint_has_py_cond.
6029 * python/python.c: Add python.h to includes. Remove python.h from
6030 HAVE_PYTHON definition
6031 (gdbpy_should_stop): New dummy function.
6032 (gdbpy_breakpoint_has_py_cond): New dummy function.
6033 * python/py-breakpoint.c (bppy_init): Rewrite to allow
6034 sub-classing capabilities.
6035 (gdbpy_should_stop): New function.
6036 (gdbpy_breakpoint_has_py_cond): New function.
6037 (local_setattro): New function.
6038 * breakpoint.c (condition_command): Add check for Python 'stop'
6039 operation.
6040 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
6041 operation function as part of stop/continue tests.
6042
6043 2011-03-14 Tom Tromey <tromey@redhat.com>
6044
6045 PR gdb/12576:
6046 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
6047 (needs_frame_dwarf_call): Likewise.
6048
6049 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
6050
6051 Fix ARI warning about functions without parameters that do not
6052 use (void).
6053 * breakpoint.c (all_tracepoints): Replace () by (void).
6054 * f-exp.y (match_string_literal): Ditto.
6055 (yylex): Ditto.
6056 * m2-exp.y (yylex): Ditto.
6057 * mep-tdep.c (current_me_module): Ditto.
6058 (current_options): Ditto.
6059 (current_cop_data_bus_width): Ditto.
6060 (current_cr_names): Ditto.
6061 (current_cr_is_float): Ditto.
6062 (current_ccr_names): Ditto.
6063 * objc-exp.y (yylex): Ditto.
6064 * p-exp.y (yylex): Ditto.
6065 * remote.c (send_interrupt_sequence): Ditto.
6066 * tracepoint.c (current_trace_status): Ditto.
6067 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
6068 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
6069
6070 2011-03-11 Michael Snyder <msnyder@vmware.com>
6071
6072 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
6073 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
6074 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
6075 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
6076 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
6077
6078 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
6079 (delete_async_event_handler): Ditto.
6080
6081 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
6082
6083 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
6084
6085 * top.c (set_verbose): Assert showcmd was found.
6086
6087 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
6088
6089 * xtensa-tdep.c (warning_once): Correct style issues.
6090
6091 2011-03-11 Yao Qi <yao@codesourcery.com>
6092
6093 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
6094
6095 2011-03-11 Andreas Schwab <schwab@redhat.com>
6096
6097 * common/aclocal.m4: Remove.
6098
6099 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
6100
6101 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
6102 (xtensa_write_register, xtensa_read_register): Likewise.
6103 (xtensa_hextochar): Removed.
6104 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
6105
6106 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
6107
6108 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
6109 (xtensa_call0_frame_cache_t): Update comments. New fields added.
6110 (xtensa_alloc_frame_cache): Add initialization for new fields.
6111 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
6112 (warning_once): New function.
6113 (xtensa_insn_kind): New item c0opc_and.
6114 (call0_classify_opcode): Add the case for AND instruction.
6115 (call0_track_op): Change arguments. New local variable litbase.
6116 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
6117 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
6118 in the prologue.
6119 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
6120 (call0_analyze_prologue): Update the comments. Change arguments.
6121 Add the variety of updates to handle extended prologues, which now can
6122 conduct dynamic stack adjustments.
6123 (call0_frame_cache): Likewise.
6124 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
6125 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
6126
6127 2011-03-10 Michael Snyder <msnyder@vmware.com>
6128
6129 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
6130 (cmd_qtframe): Ditto.
6131 (cmd_qtbuffer): Ditto.
6132 (cmd_bigqtbuffer): Ditto.
6133
6134 2011-03-10 Tom Tromey <tromey@redhat.com>
6135
6136 * tracepoint.c (trace_actions_command): Update.
6137 * thread.c (thread_apply_command): Update.
6138 * reverse.c (delete_bookmark_command): Update.
6139 (bookmarks_info): Update.
6140 * printcmd.c (undisplay_command): Update.
6141 * memattr.c (mem_enable_command): Update.
6142 (mem_disable_command): Update.
6143 (mem_delete_command): Update.
6144 * inferior.c (detach_inferior_command): Update.
6145 (kill_inferior_command): Update.
6146 (remove_inferior_command): Update.
6147 * cli/cli-utils.h (struct get_number_or_range_state): New.
6148 (init_number_or_range): Declare.
6149 (get_number_or_range): Update.
6150 * cli/cli-utils.c (init_number_or_range): New function.
6151 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
6152 static variables.
6153 (number_is_in_list): Update.
6154 * breakpoint.h (get_tracepoint_by_number): Update.
6155 * breakpoint.c (map_breakpoint_numbers): Update for change to
6156 get_number_or_range.
6157 (find_location_by_number): Use get_number, not
6158 get_number_or_range.
6159 (trace_pass_set_count): New function.
6160 (trace_pass_command): Update for change to get_number_or_range.
6161 Rework loop logic.
6162 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
6163 'state' parameter.
6164
6165 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
6166
6167 * python/py-param.c (add_setshow_generic): Add set/show callback
6168 parameters. Register Python object context.
6169 (get_show_value): New function.
6170 (get_set_value): New function.
6171 (call_doc_function): New function.
6172 (get_doc_string): Move behind get_show_value/get_set_value.
6173
6174 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
6175
6176 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
6177
6178 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
6179
6180 * xtensa-tdep.c (xtensa_read_register): Add comment.
6181 (xtensa_write_register): Likewise.
6182 (xtensa_hextochar): Add comment and update to match coding conventions.
6183 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
6184 (execute_l32e, execute_s32e, execute_code): Update comments.
6185 (xtensa_exception_handler_t): Update to match coding conventions.
6186 (xtensa_insn_kind): Likewise.
6187
6188 2011-03-09 Michael Snyder <msnyder@vmware.com>
6189
6190 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
6191
6192 2011-03-09 Pedro Alves <pedro@codesourcery.com>
6193
6194 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
6195
6196 2011-03-09 Tom Tromey <tromey@redhat.com>
6197
6198 * thread.c (restore_selected_frame): Handle frame_level == -1.
6199 (make_cleanup_restore_current_thread): Use
6200 get_selected_frame_if_set.
6201 * frame.h (get_selected_frame_if_set): Declare.
6202 * frame.c (get_selected_frame_if_set): New function.
6203
6204 2011-03-09 Pedro Alves <pedro@codesourcery.com>
6205
6206 * cli/cli-cmds.c (shell_escape): Use lbasename.
6207 * coffread.c (coff_start_symtab): Constify parameter.
6208 (complete_symtab): Constify `name' parameter.
6209 (coff_symtab_read): Constify `filestring' local.
6210 (coff_getfilename): Constify return and `result' local.
6211 Use lbasename.
6212 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
6213 * linux-fork.c (info_checkpoints_command): Use lbasename.
6214 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
6215 * minsyms.c (lookup_minimal_symbol): Use lbasename.
6216 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
6217 * procfs.c (procfs_make_note_section): Use lbasename.
6218 * tui/tui-io.c (printable_part): Constity return and parameter.
6219 Use lbasename.
6220 (print_filename): Constify parameters, and local `s'.
6221 (tui_rl_display_match_list): Constify local `temp'.
6222
6223 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6224
6225 Revert:
6226 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6227 Fix DWARF-3+ DW_AT_accessibility default assumption.
6228 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6229 cu->header.version >= 3.
6230
6231 2011-03-09 Yao Qi <yao@codesourcery.com>
6232
6233 * common/Makefile.in: Remove.
6234 * common/configure: Remove.
6235 * common/configure.ac: Remove.
6236
6237 2011-03-09 Yao Qi <yao@codesourcery.com>
6238
6239 Revert:
6240 2011-02-11 Yao Qi <yao@codesourcery.com>
6241
6242 * common/Makefile.in: Add copyright header.
6243
6244 2011-02-11 Yao Qi <yao@codesourcery.com>
6245
6246 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6247 libcommon.a.
6248 * configure.ac: Add common to sub dir.
6249 * configure: Regenerate.
6250
6251 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6252
6253 * xtensa-tdep.c (call0_ret): New function.
6254 (xtensa_skip_prologue): Speed up analysis.
6255
6256 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6257
6258 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
6259 while executing MI command -data-list-changed-registers.
6260
6261 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6262
6263 * xtensa-tdep.c (xtensa_read_register): New function.
6264 (xtensa_write_register): New function.
6265 (xtensa_find_register_by_name): New function.
6266 (xtensa_windowed_frame_cache): Update comments in type description.
6267 (xtensa_frame_cache): Likewise.
6268 (xtensa_window_interrupt_insn): New function.
6269 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
6270 (xtensa_insn_kind): Add new instructions.
6271 (rwx_special_register): New function.
6272 (call0_classify_opcode): Add new instructions to the analysis.
6273 (a0_saved, a7_saved, a11_saved): New variables.
6274 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
6275 (execute_l32e): New function.
6276 (execute_s32e): New function.
6277 (xtensa_exception_handler_t): New type.
6278 (execute_code): New function.
6279 (xtensa_window_interrupt_frame_cache): New function to conduct frame
6280 analysis for Xtensa Window Exception handlers.
6281
6282 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6283
6284 * xtensa-tdep.c (TX_PS): New.
6285 (windowing_enabled): Update to count for Call0 ABI.
6286 (xtensa_hextochar): New.
6287 (xtensa_init_reggroups): Make algorithm generic.
6288 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
6289
6290 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6291
6292 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
6293
6294 2011-03-08 Michael Snyder <msnyder@vmware.com>
6295
6296 * i386-tdep.c (i386_follow_jump): Check return value of
6297 target_read_memory.
6298 (i386_analyze_struct_return): Ditto.
6299 (i386_skip_probe): Ditto.
6300 (i386_match_insn): Ditto.
6301 (i386_skip_noop): Ditto.
6302 (i386_analyze_frame_setup): Ditto.
6303 (i386_analyze_register_saves): Ditto.
6304 (i386_skip_prologue): Ditto.
6305 (i386_skip_main_prologue): Ditto.
6306
6307 * target.c (read_whatever_is_readable): Fix memory leak.
6308
6309 * i386-tdep.c (i386_process_record): Document fall through.
6310
6311 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6312
6313 Fix DWARF-3+ DW_AT_accessibility default assumption.
6314 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6315 cu->header.version >= 3.
6316
6317 2011-03-08 Pedro Alves <pedro@codesourcery.com>
6318
6319 * remote.c (remote_check_symbols): Skip if the target has no
6320 execution.
6321
6322 2011-03-08 Joel Brobecker <brobecker@adacore.com>
6323
6324 * target.c (read_whatever_is_readable): Reformat comment,
6325 with a minor typo fix. Minor reformatting of the code.
6326
6327 2011-03-08 Yao Qi <yao@codesourcery.com>
6328
6329 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
6330 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
6331 Use cached result instead of calling displaced_in_arm_mode again.
6332 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
6333 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
6334 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
6335 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
6336 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
6337 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
6338 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
6339 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
6340 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6341 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
6342 (arm_catch_kernel_helper_return): Likewise.
6343 * gdb/arm-tdep.h : Update function declarations.
6344
6345 2011-03-07 Michael Snyder <msnyder@vmware.com>
6346
6347 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
6348
6349 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
6350
6351 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
6352
6353 * elfread.c (elf_symtab_read): Stop memory leak.
6354
6355 * main.c (captured_main): Fix memory leak.
6356
6357 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
6358
6359 * ada-lang.c (compare_names): Call is_name_suffix with string1
6360 instead of string2.
6361
6362 2011-03-07 Tom Tromey <tromey@redhat.com>
6363
6364 * xcoffread.c (xcoff_sym_fns): Update.
6365 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
6366 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
6367 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
6368 (symbol_file_add_with_addrs_or_offsets): Likewise.
6369 (reread_symbols): Handle OBJF_PSYMTABS_READ.
6370 * somread.c (som_sym_fns): Update.
6371 * psymtab.h (require_partial_symbols): Declare.
6372 * psymtab.c (require_partial_symbols): New function.
6373 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
6374 (ALL_OBJFILE_PSYMTABS): Undef.
6375 (ALL_PSYMTABS): Move from psympriv.h.
6376 (lookup_partial_symtab, find_pc_sect_psymtab)
6377 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
6378 (find_last_source_symtab_from_partial)
6379 (forget_cached_source_info_partial)
6380 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
6381 (expand_partial_symbol_tables, read_psymtabs_with_filename)
6382 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
6383 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
6384 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
6385 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
6386 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
6387 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
6388 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
6389 psymtabs.
6390 * mipsread.c (ecoff_sym_fns): Update.
6391 * machoread.c (macho_sym_fns): Update.
6392 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
6393 (read_psyms): New function.
6394 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
6395 (elf_sym_fns_lazy_psyms): New global.
6396 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
6397 dwarf2_build_psymtabs.
6398 * dbxread.c (aout_sym_fns): Update.
6399 * coffread.c (coff_sym_fns): Update.
6400
6401 2011-03-07 Tom Tromey <tromey@redhat.com>
6402
6403 * infrun.c (print_exited_reason): Include inferior id and pid in
6404 message.
6405
6406 2011-03-07 Tom Tromey <tromey@redhat.com>
6407
6408 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
6409 parameter.
6410 (target_has_execution_1): Update.
6411 (target_has_execution_current): Declare.
6412 (target_has_execution): Call target_has_execution_current.
6413 (default_child_has_execution): Update.
6414 * target.c (default_child_has_execution): Add 'the_ptid'
6415 parameter.
6416 (target_has_execution_1): Likewise.
6417 (target_has_execution_current): New function.
6418 (add_target): Update.
6419 (init_dummy_target): Update.
6420 * remote-m32r-sdi.c (m32r_has_execution): New function.
6421 (init_m32r_ops): Use it.
6422 * record.c (record_core_has_execution): Now static. Add
6423 'the_ptid' parameter.
6424 * inferior.c (have_live_inferiors): Don't save current thread.
6425 Use target_has_execution_1.
6426
6427 2011-03-07 Yao Qi <yao@codesourcery.com>
6428
6429 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
6430
6431 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6432
6433 * elfread.c (elf_symtab_read): Minor reformatting.
6434
6435 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6436
6437 * objc-lang.c (selectors_info): Minor reformatting.
6438
6439 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6440
6441 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
6442
6443 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6444 Michael Snyder <msnyder@vmware.com>
6445
6446 * ada-valprint.c (ada_val_print_array): Move the declaration of
6447 "byte_order" and "elttype" inside the block where these variables
6448 are actually used. Remove some special handling for the case
6449 where "elttype" and "eltlen" are null. Replace by a comment
6450 and a couple of assertion checks.
6451
6452 2011-03-05 Michael Snyder <msnyder@vmware.com>
6453
6454 * source.c (add_path): Replace semicolon at end of block.
6455 * dwarf2expr.c (execute_stack_op): Ditto.
6456
6457 2011-03-05 Mike Frysinger <vapier@gentoo.org>
6458
6459 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
6460 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
6461 (bfin-*-*): Likewise.
6462
6463 2011-03-05 Michael Snyder <msnyder@vmware.com>
6464
6465 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
6466 * mdebugread.c (parse_symbol): Ditto.
6467 * parse.c (parse_exp_in_context): Ditto.
6468 * source.c (add_path): Ditto.
6469 * utils.c (gnu_debuglink_crc32): Ditto.
6470 * varobj.c (variable_language): Ditto.
6471
6472 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
6473
6474 2011-03-04 Michael Snyder <msnyder@vmware.com>
6475
6476 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
6477
6478 * symfile.c (simple_overlay_update): Check for null return value
6479 from lookup_minimal_symbol.
6480
6481 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
6482
6483 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6484
6485 * eval.c (parse_and_eval_address_1): Remove function.
6486 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
6487 instead of parse_and_eval_address_1.
6488 * value.h (parse_and_eval_address_1): Remove prototype.
6489
6490 2011-03-04 Michael Snyder <msnyder@vmware.com>
6491
6492 * remote.c (putpkt_binary): Document that case stmt falls through.
6493
6494 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6495
6496 * breakpointc (print_it_typical): Move NULL check from here...
6497 (print_bp_stop_message): ... to here.
6498
6499 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
6500
6501 * breakpoint.c (enable_command): Use break instead of continue,
6502 and fill in a missing break.
6503 (disable_command): Ditto.
6504
6505 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6506
6507 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
6508 (terminal_save_ours): Remove misleading comment.
6509 (inflow_inferior_data_cleanup): Free ttystate.
6510 (inflow_inferior_exit): Likewise.
6511 (copy_terminal_info): Copy ttystate.
6512
6513 * serial.c (serial_copy_tty_state): New function.
6514 * serial.h (serial_copy_tty_state): Add prototype.
6515 (struct serial_ops): Add copy_tty_state callback.
6516 * ser-base.c (ser_base_copy_tty_state): New function.
6517 * ser-base.h (ser_base_copy_tty_state): Add prototype.
6518 * ser-go32.c (dos_copy_tty_state): New function.
6519 (dos_ops): Install copy_tty_state callback.
6520 * ser-mingw.c (_initialize_ser_windows): Likewise.
6521 * ser-pipe.c (_initialize_ser_pipe): Likewise.
6522 * ser-unix.c (hardwire_copy_tty_state): New function.
6523 (_initialize_ser_hardwire): Install it.
6524
6525 2011-03-04 Michael Snyder <msnyder@vmware.com>
6526
6527 * breakpoint.c (create_breakpoint): Add missing break statement.
6528
6529 Reverting this patch:
6530 * infcall.c (call_function_by_hand): Add break statements for lint.
6531
6532 Reverting this patch:
6533 * cli/cli-script.c (script_from_file): Add break for lint.
6534
6535 2011-03-04 Michael Snyder <msnyder@vmware.com>
6536
6537 * solib.c (reload_shared_libraries_1): Close memory leak.
6538
6539 2011-03-03 Tom Tromey <tromey@redhat.com>
6540
6541 PR gdb/12538:
6542 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
6543 DW_STRING is NULL.
6544
6545 2011-03-03 Michael Snyder <msnyder@vmware.com>
6546
6547 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
6548 fields of struct 'st' to zero.
6549
6550 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
6551 sal.pspace before calling set_current_source_symtab_and_line.
6552
6553 2011-03-03 Yao Qi <yao@codesourcery.com>
6554
6555 * Makefile.in (configure-common): Remove. Let Makefile
6556 in dir common to rebuild itself.
6557 (common/Makefile): Likewise.
6558
6559 2011-03-03 Joel Brobecker <brobecker@adacore.com>
6560
6561 * utils.c (parse_escape): Add i18n markup in error message.
6562
6563 2011-03-03 Yao Qi <yao@codesourcery.com>
6564
6565 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
6566 ARM_PC_REGNUM.
6567 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
6568 (displaced_write_reg, displaced_read_reg): Likewise.
6569 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
6570 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6571 (cleanup_branch): Replace magic number 14 and 15 with
6572 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
6573
6574 2011-03-02 Michael Snyder <msnyder@vmware.com>
6575
6576 * maint.c (maintenance_do_deprecate): No need to check for NULL.
6577
6578 * cli/cli-script.c (script_from_file): Add break for lint.
6579
6580 * mdebugread.c (parse_partial_symbols): Fix indent.
6581
6582 * target-descriptions.c (tdesc_gdb_type): No need to call
6583 xstrdup, callee saves a copy.
6584
6585 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
6586
6587 * infcall.c (call_function_by_hand): Add break statements for lint.
6588
6589 * utils.c (parse_escape): Escape the escape char.
6590
6591 * python/py-inferior.c (build_inferior_list): Error out if
6592 PyList_Append fails.
6593 (gdbpy_inferiors): Error out if build_inferior_list fails.
6594
6595 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
6596 a function call.
6597
6598 * record.c (record_restore): Move printf to before error return.
6599
6600 2011-03-02 Yao Qi <yao@codesourcery.com>
6601
6602 * arm-tdep.h (struct displaced_step_closure): Add two new fields
6603 is_thumb and insn_size.
6604 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
6605 on both ARM and Thumb mode.
6606 (arm_process_displaced_insn): Set is_thumb and insn_size.
6607 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
6608 (arm_displaced_step_fixup): Likewise.
6609
6610 2011-03-01 Michael Snyder <msnyder@vmware.com>
6611
6612 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
6613
6614 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
6615
6616 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
6617
6618 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
6619
6620 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6621 with xmalloc.
6622
6623 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
6624 which shadows function parameter.
6625
6626 * tracepoint.c (create_tsv_from_upload): Superfluous call
6627 to xstrdup. Callee already calls xstrdup.
6628
6629 * linespec.c (decode_line_1): Remove unnecessary null check.
6630
6631 * tracepoint.c (scope_info): Fix mem leak, remove underused
6632 variable.
6633
6634 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
6635 superfluous null check.
6636
6637 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
6638 (value_of_builtin_frame_fp_reg): Ditto.
6639
6640 * event-top.c (display_gdb_prompt): Remove superfluous null check.
6641
6642 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
6643 be null.
6644
6645 * linespec.c (decode_line_1): Check for null before dereference.
6646
6647 * reverse.c (record_restore): Move null-check to before pointer
6648 dereference.
6649
6650 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
6651
6652 * objc-lang.c (selectors_info): Add explanitory comment.
6653 (classes_info): Ditto.
6654
6655 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6656
6657 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
6658 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
6659 versions of the trampoline. Handle Thumb vs. ARM addresses.
6660 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
6661 (arm_linux_init_abi): Install it.
6662 * arm-tdep.c (arm_psr_thumb_bit): Make global.
6663 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
6664
6665 2011-02-28 Michael Snyder <msnyder@vmware.com>
6666
6667 * ui-out.c (ui_out_field_core_addr): Make local char buffer
6668 a little bigger, to avoid possibility of an overflow.
6669
6670 * breakpoint.c (breakpoint_adjustment_warning): Make local char
6671 buffers a little bigger, to avoid possibility of an overflow.
6672
6673 * coffread.c (coff_getfilename): Add check to avoid overflow.
6674
6675 * objc-lang.c (selectors_info): Add a small safety margin to
6676 avoid overflow.
6677 (classes_info): Error out on too long REGEXP.
6678
6679 * infrun.c (handle_inferior_event): Remove unused function call.
6680
6681 * fork-child.c (fork_inferior): Remove ifdef'd code and
6682 unused variable.
6683
6684 * linux-thread-db.c (attach_thread): Discard unused value.
6685
6686 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
6687
6688 * remote.c (remote_get_noisy_reply): Discard unused value.
6689 (remote_vcont_resume): Ditto.
6690 (remote_stop_ns): Ditto.
6691
6692 * linespec.c (decode_objc): Delete unused variable.
6693
6694 * tui/tui-regs.c (tui_register_format): Delete unused variable.
6695
6696 * dwarf2read.c (add_partial_symbol): Discard unused values.
6697 (read_base_type): Delete unused variable.
6698
6699 * dbxread.c (read_dbx_symtab): Discard unused value.
6700
6701 * eval.c (evaluate_subexp_standard): Delete unused variable,
6702 and discard unused values.
6703
6704 * infcmd.c (_initialize_infcmd): Discard unused values.
6705
6706 * stabsread.c (rs6000_builtin_type): Missing break statement.
6707
6708 * dbxread.c (process_one_symbol): Discard unused value.
6709
6710 * coffread.c (coff_end_symtab): Delete unused variable.
6711
6712 * dwarf2read.c (dw2_get_file_names): Discard unused value.
6713 (dwarf2_add_typedef): Delete unused variable.
6714 (read_namespace): Ditto.
6715 (dwarf_decode_macros): Ditto.
6716
6717 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6718
6719 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6720
6721 * p-valprint.c (pascal_val_print): Discard unused value.
6722
6723 * utils.c (nquery): Call va_end before return;
6724 (yquery): Ditto.
6725 (query): Ditto.
6726
6727 * proc-service.c (ps_plog): Call va_end before return.
6728
6729 2011-02-28 Tom Tromey <tromey@redhat.com>
6730
6731 * python/python.c (gdbpy_value_cst): New global.
6732 (_initialize_python): Initialize it.
6733 * python/python-internal.h (gdbpy_value_cst): Declare.
6734 * python/py-value.c (convert_value_from_python): Use
6735 gdbpy_value_cst.
6736
6737 2011-02-28 Michael Snyder <msnyder@vmware.com>
6738
6739 * python/py-cmd.c (cmdpy_init): Fix memory leak.
6740
6741 * breakpoint.c (catch_syscall_completer): Free malloced list.
6742
6743 * jv-lang.c (java_primitive_type_from_name): Add missing break.
6744
6745 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6746 (lval_func_check_synthetic_pointer): Ditto.
6747 (lval_func_free_closure): Fix use-after-free.
6748
6749 2011-02-28 Tom Tromey <tromey@redhat.com>
6750
6751 * psymtab.c (expand_partial_symbol_tables): Use
6752 ALL_OBJFILE_PSYMTABS.
6753
6754 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6755
6756 * objc-lang.c (selectors_info): Error on too long REGEXP.
6757
6758 2011-02-28 Michael Snyder <msnyder@vmware.com>
6759
6760 * python/py-param.c (set_parameter_value): Add missing
6761 break statement.
6762
6763 * linux-record.c (record_linux_system_call): Add missing
6764 break statement.
6765
6766 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6767
6768 * breakpoint.c (print_one_breakpoint_location): Remove unused
6769 argument PRINT_ADDRESS_BITS. Update callers.
6770 (print_one_breakpoint): Likewise.
6771
6772 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6773
6774 * breakpoint.c (wrap_indent_at_field): New function.
6775 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6776 Allocate ui_stream locally instead of using STB argument.
6777 (print_one_breakpoint_location): Update call.
6778 * ui-out.c (ui_out_query_field): New function.
6779 * ui-out.h (ui_out_query_field): Add prototype.
6780
6781 2011-02-28 Joel Brobecker <brobecker@adacore.com>
6782
6783 From Michael Snyder <msnyder@vmware.com>
6784 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6785
6786 2011-02-27 Michael Snyder <msnyder@vmware.com>
6787
6788 * objc-lang.c (selectors_info): Prevent string overrun.
6789
6790 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6791 error in strncpy.
6792
6793 * symtab.c (rbreak_command): Move variable 'file_name' to
6794 outer scope.
6795
6796 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6797 param with a local variable of the same name.
6798
6799 2011-02-27 Michael Snyder <msnyder@vmware.com>
6800
6801 * value.c (value_from_history_ref): New function.
6802 * value.h (value_from_history_ref): Export.
6803 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6804 to parse value history references.
6805 * cli/cli-utils.h (get_number_trailer): Update comment.
6806
6807 2011-02-27 Michael Snyder <msnyder@vmware.com>
6808
6809 * inferior.c (detach_inferior_command): Use get_number_or_range.
6810 (kill_inferior_command): Ditto.
6811 (remove_inferior_command): Ditto.
6812 (initialize_inferiors): Make command names plural.
6813 Update help strings.
6814
6815 2011-02-27 Michael Snyder <msnyder@vmware.com>
6816
6817 * darwin-nat-info.c: Fix comment typo.
6818 * dwarf2expr.h: Ditto.
6819 * fbsd-nat.c: Ditto.
6820 * fbsd-nat.h: Ditto.
6821 * frame-unwind.h: Ditto.
6822 * frame.h: Ditto.
6823 * hppa-hpux-tdep.c: Ditto.
6824 * i386-linux-nat.c: Ditto.
6825 * linux-nat.c: Ditto.
6826 * nbsd-nat.c: Ditto.
6827 * nbsd-nat.h: Ditto.
6828 * ppc-linux-tdep.c: Ditto.
6829 * serial.c: Ditto.
6830 * ui-file.h: Ditto.
6831 * tui/tui-winsource.c: Ditto.
6832
6833 2011-02-26 Michael Snyder <msnyder@vmware.com>
6834
6835 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6836
6837 * maint.c (maintenance_do_deprecate): Plug a memory leak.
6838
6839 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6840 with a local variable of the same name.
6841
6842 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
6843 param with a local variable of the same name.
6844 (i387_supply_xsave): Ditto.
6845
6846 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6847 that it does not shadow a function parameter.
6848
6849 * i386-nat.c (i386_length_and_rw_bits): Document that case
6850 statement is meant to fall through.
6851
6852 * expprint.c (dump_subexp_body_standard): Document that case
6853 statement is meant to fall through.
6854
6855 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6856 dead if statement. Condition can't be false.
6857
6858 2011-02-25 Michael Snyder <msnyder@vmware.com>
6859
6860 * arm-tdep.c: Fix typos in comments.
6861 * bsd-uthread.c: Ditto.
6862 * completer.c: Ditto.
6863 * corelow.c: Ditto.
6864 * cp-namespace.c: Ditto.
6865 * cp-support.c: Ditto.
6866 * cris-tdep.c: Ditto.
6867 * dbxread.c: Ditto.
6868 * dwarf2read.c: Ditto.
6869 * frame.h: Ditto.
6870 * gdbtypes.h: Ditto.
6871 * inferior.h: Ditto.
6872 * mdebugread.c: Ditto.
6873 * mips-tdep.c: Ditto.
6874 * ppc-linux-nat.c: Ditto.
6875 * ppc-linux-tdep.c: Ditto.
6876 * printcmd.c: Ditto.
6877 * sol-thread.c: Ditto.
6878 * solib-frv.c: Ditto.
6879 * solist.h: Ditto.
6880 * sparc64-tdep.c: Ditto.
6881 * spu-tdep.c: Ditto.
6882 * stabsread.c: Ditto.
6883 * symfile.c: Ditto.
6884 * valops.c: Ditto.
6885 * varobj.c: Ditto.
6886 * vax-nat.c: Ditto.
6887 * python/py-block.c: Ditto.
6888 * python/py-symbol.c: Ditto.
6889 * python/py-symtab.c: Ditto.
6890 * python/py-value.c: Ditto.
6891 * tui/tui-win.c: Ditto.
6892
6893 2011-02-25 Michael Snyder <msnyder@vmware.com>
6894
6895 * inferior.c (print_inferior): Accept a string instead of an int
6896 for requested_inferiors, and use get_number_or_range to parse it.
6897 (info_inferiors_command): Pass args string to print_inferior.
6898 (initialize_inferiors): Change help string for info inferiors.
6899 * inferior.h (print_inferior): Export prototype change.
6900
6901 2011-02-25 Tom Tromey <tromey@redhat.com>
6902
6903 * common/ax.def (invalid2): Set to 0x31.
6904
6905 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6906
6907 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6908 L and plongest.
6909 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6910 use L and plongest.
6911 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6912
6913 2011-02-24 Michael Snyder <msnyder@vmware.com>
6914
6915 * Makefile.in (clean): Make clean should remove generated files
6916 observer.h and observer.inc.
6917
6918 2011-02-24 Joel Brobecker <brobecker@adacore.com>
6919
6920 Revert the following patch (not approved yet):
6921 2011-02-21 Hui Zhu <teawater@gmail.com>
6922 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6923 * ax-gdb.c (gen_printf_expr_callback): New function.
6924 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6925 * ax-general.c (ax_memcpy): New function.
6926 (ax_print): Handle "printf".
6927 (ax_reqs): Ditto.
6928 * ax.h (ax_memcpy): Forward declare.
6929 * common/ax.def (invalid2): Removed.
6930 (printf): New entry.
6931 * printcmd.c (printcmd.h): New include.
6932 (string_printf): New function.
6933 (ui_printf): Removed.
6934 (printf_command): Remove static. Call string_printf.
6935 (eval_command): Call string_printf.
6936 * printcmd.h: New file.
6937 * tracepoint.c (validate_actionline,
6938 encode_actions_1): handle printf_command.
6939
6940 2011-02-23 Tom Tromey <tromey@redhat.com>
6941
6942 * ax-general.c (ax_pick): Add missing newline.
6943
6944 2011-02-23 Michael Snyder <msnyder@vmware.com>
6945
6946 * breakpoint.c (breakpoint_1): Change first argument from an int
6947 to a char pointer, so that the function now accepts a list of
6948 breakpoints rather than just one. Use new function
6949 'number_is_in_list' to implement.
6950 (breakpoints_info): Pass char * instead of int to breakpoint_1.
6951 (watchpoints_info): Ditto.
6952 (tracepoints_info): Ditto.
6953 (maintenance_info_breakpoints): Ditto.
6954 (_initialize_breakpoint): Update help strings to reflect the fact
6955 that these functions can now take more than one argument.
6956 * cli/cli-utils.c (number_is_in_list): New function.
6957 * cli/cli-utils.h (number_is_in_list): Export.
6958
6959 2011-02-23 Michael Snyder <msnyder@vmware.com>
6960
6961 * memattr.c (mem_enable_command): Use get_number_or_range.
6962 (mem_disable_command): Ditto.
6963 (mem_delete_command): Ditto.
6964 (_initialize_mem): Tweak usage message to reflect multiple
6965 arguments.
6966
6967 2011-02-22 Doug Evans <dje@google.com>
6968
6969 Add gdb.lookup_global_symbol python function.
6970 * NEWS: Add entry.
6971 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6972 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6973 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6974
6975 2011-02-22 Tom Tromey <tromey@redhat.com>
6976
6977 * language.c (language_class_name_from_physname): Rename
6978 'curr_language' argument to 'lang'; use in body.
6979
6980 2011-02-22 Michael Snyder <msnyder@vmware.com>
6981
6982 * cli/cli-utils.c (number_is_in_list): Check for zero return.
6983
6984 2011-02-22 Pedro Alves <pedro@codesourcery.com>
6985
6986 * frame-unwind.h: Fix comment to mention the this frame, not the
6987 next.
6988
6989 2011-02-22 Tom Tromey <tromey@redhat.com>
6990
6991 * symfile.c (auto_solib_limit): Remove.
6992 * symfile.h (auto_solib_limit): Remove.
6993
6994 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6995
6996 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6997
6998 2011-02-21 Michael Snyder <msnyder@vmware.com>
6999
7000 * gdbthread.h (print_thread_info): Change prototype.
7001 * thread.c (print_thread_info): Accept char* instead of int for
7002 requested_threads argument. Use new function number_is_in_list
7003 to determine which threads to list.
7004 (info_threads_command): Pass char* to print_thread_info.
7005 * cli/cli-utils.c (number_is_in_list): New function.
7006 * cli/cli-utils.h (number_is_in_list): Export.
7007 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
7008 print_thread_info.
7009 (print_one_inferior): Ditto.
7010 (mi_cmd_list_thread_groups): Ditto.
7011
7012 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7013
7014 * common/Makefile.in (CFLAGS): New.
7015 (COMPILE): Add $(CFLAGS).
7016
7017 2011-02-21 Tom Tromey <tromey@redhat.com>
7018
7019 * breakpoint.c (catch_syscall_command_1): Fix typo.
7020
7021 2011-02-21 Tom Tromey <tromey@redhat.com>
7022
7023 * reverse.c: Include cli-utils.h.
7024 * printcmd.c: Include cli-utils.h.
7025 (string_printf): Use skip_spaces.
7026 * cli/cli-utils.h: New file.
7027 * cli/cli-utils.c: New file.
7028 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
7029 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
7030 * breakpoint.h (get_number, get_number_or_range): Move to
7031 cli-utils.h.
7032 * breakpoint.c: Include cli-utils.h.
7033 (get_number_trailer, get_number, get_number_or_range)
7034 (ep_skip_leading_whitespace): Move to cli-utils.c.
7035 (create_breakpoint_sal, find_condition_and_thread)
7036 (decode_static_tracepoint_spec, watch_command_1)
7037 (watch_maybe_just_location, ep_parse_optional_if_clause)
7038 (catch_fork_command_1, catch_exec_command_1)
7039 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
7040 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
7041 (SUBDIR_CLI_SRCS): Add cli-utils.c.
7042 (HFILES_NO_SRCDIR): Add cli-utils.h.
7043 (cli-utils.o): New target.
7044
7045 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7046
7047 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
7048 before calling discard_all_inferiors.
7049
7050 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
7051
7052 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
7053 (struct builtin_opencl_type): Remove.
7054 (builtin_opencl_type): Change return type to "struct type **".
7055 (lookup_opencl_vector_type): Update caller.
7056 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
7057 (build_opencl_types): Install plain array of "struct type *"
7058 instead of "struct builtin_opencl_type".
7059
7060 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7061 Ulrich Weigand <uweigand@de.ibm.com>
7062
7063 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
7064 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
7065 (struct arm_linux_hwbp_cap): New type.
7066 (arm_linux_get_hwbp_cap): New function.
7067 (arm_linux_get_hw_breakpoint_count): Likewise.
7068 (arm_linux_get_hw_watchpoint_count): Likewise.
7069 (arm_linux_can_use_hw_breakpoint): Likewise.
7070 (arm_hwbp_type): New type.
7071 (arm_hwbp_control_t): Likewise.
7072 (struct arm_linux_hw_breakpoint): Likewise.
7073 (struct arm_linux_thread_points): Likewise.
7074 (arm_threads): New global variable.
7075 (arm_linux_find_breakpoints_by_tid): New function.
7076 (arm_hwbp_control_initialize): Likewise.
7077 (arm_hwbp_control_is_enabled): Likewise.
7078 (arm_hwbp_control_disable): Likewise.
7079 (arm_linux_hw_breakpoint_initialize): Likewise.
7080 (arm_linux_get_hwbp_type): Likewise.
7081 (arm_linux_hw_watchpoint_initialize): Likewise.
7082 (arm_linux_hw_breakpoint_equal): Likewise.
7083 (arm_linux_insert_hw_breakpoint1): Likewise.
7084 (arm_linux_remove_hw_breakpoint1): Likewise.
7085 (arm_linux_insert_hw_breakpoint): Likewise.
7086 (arm_linux_remove_hw_breakpoint): Likewise.
7087 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
7088 (arm_linux_insert_watchpoint): Likewise.
7089 (arm_linux_remove_watchpoint): Likewise.
7090 (arm_linux_stopped_data_address): Likewise.
7091 (arm_linux_stopped_by_watchpoint): Likewise.
7092 (arm_linux_watchpoint_addr_within_range): Likewise.
7093 (arm_linux_new_thread): Likewise.
7094 (arm_linux_thread_exit): Likewise.
7095 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
7096 related target callbacks. Register arm_linux_new_thread and
7097 arm_linux_thread_exit.
7098 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
7099 * arm-tdep.c (arm_pc_is_thumb): Make global.
7100 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
7101
7102 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
7103
7104 * breakpoint.c (update_watchpoint): Do not attempt to recreate
7105 per-frame locations while within a function epilogue.
7106
7107 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
7108
7109 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
7110 to GNU coding standards.
7111
7112 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
7113
7114 Allow use of mingw native on Windows 95 OS.
7115 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
7116 (ser_windows_close): Only call CancelIo if function exists.
7117 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
7118 to check for existence of CancelIo function in kernel32 DLL.
7119
7120 2011-02-21 Hui Zhu <teawater@gmail.com>
7121
7122 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
7123 * ax-gdb.c (gen_printf_expr_callback): New function.
7124 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
7125 * ax-general.c (ax_memcpy): New function.
7126 (ax_print): Handle "printf".
7127 (ax_reqs): Ditto.
7128 * ax.h (ax_memcpy): Forward declare.
7129 * common/ax.def (invalid2): Removed.
7130 (printf): New entry.
7131 * printcmd.c (printcmd.h): New include.
7132 (string_printf): New function.
7133 (ui_printf): Removed.
7134 (printf_command): Remove static. Call string_printf.
7135 (eval_command): Call string_printf.
7136 * printcmd.h: New file.
7137 * tracepoint.c (validate_actionline,
7138 encode_actions_1): handle printf_command.
7139
7140 2011-02-19 Michael Snyder <msnyder@vmware.com>
7141
7142 * reverse.c (delete_one_bookmark): Argument is now bookmark
7143 id rather than pointer to bookmark struct.
7144 (delete_bookmark_command): Use get_number_or_range.
7145 (goto_bookmark_command): Parse with get_number instead of strtoul.
7146 (bookmark_1): New function. Print info for one bookmark.
7147 (bookmarks_info): Use get_number_or_range and bookmark_1.
7148
7149 2011-02-18 Michael Snyder <msnyder@vmware.com>
7150
7151 * thread.c (info_threads_command): Re-implement using
7152 get_number_or_range.
7153 (thread_apply_command): Ditto.
7154
7155 2011-02-18 Tom Tromey <tromey@redhat.com>
7156
7157 * common/ax.def: New file.
7158 * ax.h (enum agent_op): Use ax.def.
7159 * ax-general.c (aop_map): Use ax.def.
7160
7161 2011-02-18 Tom Tromey <tromey@redhat.com>
7162
7163 * ax-general.c (aop_map): Add pick and rot.
7164 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
7165 <DW_OP_rot>: Implement.
7166 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
7167 (ax_pick): Declare.
7168 * ax-general.c (ax_pick): New function.
7169
7170 2011-02-18 Tom Tromey <tromey@redhat.com>
7171
7172 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
7173
7174 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7175 Tom Tromey <tromey@redhat.com>
7176
7177 * cp-support.c (make_symbol_overload_list_namespace): Do not call
7178 make_symbol_overload_list_block with NULL BLOCK.
7179 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
7180
7181 2011-02-18 Pedro Alves <pedro@codesourcery.com>
7182
7183 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
7184 * breakpoint.h (get_number_or_range): Declare.
7185 * printcmd.c (ALL_DISPLAYS): Declare.
7186 (delete_display): Reimplement taking a display pointer.
7187 (undisplay_command): Accept a range of displays to delete, using
7188 get_number_or_range.
7189
7190 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7191
7192 * c-valprint.c (c_val_print): Add embedded_offset to address
7193 for arrays of unspecified length.
7194 * p-valprint.c (pascal_val_print): Likewise.
7195
7196 2011-02-18 Yao Qi <yao@codesourcery.com>
7197
7198 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
7199 (arm_process_displaced_insn): .. here. Remove parameter INSN.
7200 (thumb_process_displaced_insn): New.
7201 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
7202 call to arm_process_displaced_insn.
7203 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
7204
7205 2011-02-17 Tom Tromey <tromey@redhat.com>
7206
7207 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
7208 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
7209 compile_dwarf_to_ax. No longer static. Call
7210 dwarf2_compile_cfa_to_ax.
7211 (locexpr_tracepoint_var_ref): Update.
7212 (loclist_tracepoint_var_ref): Update.
7213 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
7214 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
7215 argument; add 'gdbarch' and 'pc'.
7216 (dwarf2_compile_cfa_to_ax): New function.
7217 (dwarf2_frame_cache): Update.
7218
7219 2011-02-17 Joel Brobecker <brobecker@adacore.com>
7220
7221 * ada-lang.c (ada_type_of_array): Fix the size of the array
7222 in the case of an unconstrained packed array.
7223
7224 2011-02-17 Yao Qi <yao@codesourcery.com>
7225
7226 * common/Makefile.in: Add more targets for make.
7227
7228 2011-02-16 Tom Tromey <tromey@redhat.com>
7229
7230 * dwarf2loc.c (unimplemented): Fix typo.
7231
7232 2011-02-16 Tom Tromey <tromey@redhat.com>
7233
7234 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
7235 (compile_dwarf_to_ax) <default>: Use unimplemented.
7236 <DW_OP_deref>: Update.
7237 (disassemble_dwarf_expression): Update.
7238 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
7239 (decode_locdesc): Update.
7240 * dwarf2expr.h (dwarf_stack_op_name): Update.
7241
7242 2011-02-16 Tom Tromey <tromey@redhat.com>
7243
7244 * ax.h (struct aop_map) <name>: Now const.
7245
7246 2011-02-16 Tom Tromey <tromey@redhat.com>
7247
7248 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
7249 than axs_rvalue.
7250
7251 2011-02-16 Yao Qi <yao@codesourcery.com>
7252
7253 * infrun.c (get_displaced_step_closure_by_addr): New.
7254 * inferior.h: Declare it.
7255 * arm-tdep.c: (arm_pc_is_thumb): Call
7256 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
7257 returns non-NULL.
7258
7259 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7260 Jan Kratochvil <jan.kratochvil@redhat.com>
7261
7262 gdb/
7263 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
7264
7265 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7266 Jan Kratochvil <jan.kratochvil@redhat.com>
7267
7268 * value.c (value_contents_copy_raw): Extend describing comment.
7269 Assert that the destination contents we're overwriting are wholly
7270 available.
7271 (value_contents_copy): Extend describing comment.
7272
7273 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7274 Jan Kratochvil <jan.kratochvil@redhat.com>
7275
7276 * value.c (value_available_contents_eq): Remove redundant local
7277 variables. Fix available contents comparision.
7278 * value.h (value_available_contents_eq): Extend describing
7279 comment.
7280
7281 2011-02-16 Yao Qi <yao@codesourcery.com>
7282
7283 * thread.c (info_threads_command): Add missing i18n markup and remove
7284 trailing newline.
7285
7286 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7287
7288 * breakpoint.c (longjmp_names): New variable.
7289 (struct breakpoint_objfile_data): New type.
7290 (breakpoint_objfile_key): New variable.
7291 (msym_not_found): New variable.
7292 (msym_not_found_p): New predicate.
7293 (get_breakpoint_objfile_data): New function.
7294 (create_overlay_event_breakpoint): Check per-objfile cache for
7295 symbols first.
7296 (create_longjmp_master_breakpoint): Likewise.
7297 (create_std_terminate_master_breakpoint): Likewise.
7298 (create_exception_master_breakpoint): Likewise.
7299 (_initialize_breakpoint): Register per-objfile data key.
7300
7301 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7302
7303 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
7304 parameter value.
7305 (create_longjmp_master_breakpoint): Loop over longjmp names.
7306 (create_std_terminate_master_breakpoint): Const-propagate parameter
7307 value.
7308 (update_breakpoints_after_exec): Adjust.
7309 (breakpoint_re_set): Adjust.
7310
7311 2011-02-15 Michael Snyder <msnyder@vmware.com>
7312
7313 * thread.c (info_threads_command): Process arg as thread id,
7314 or list of thread ids.
7315 (thread_find_command): New command.
7316 (_initialize_thread): Document argument for info threads.
7317 Document 'thread find' command.
7318 * NEWS: Document new command "thread find".
7319
7320 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7321
7322 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
7323 * aclocal.m4: Regenerated with aclocal-1.11.1.
7324 * common/configure: Regenerate with autoconf-2.64.
7325
7326 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
7327
7328 * opencl-lang.c (build_opencl_types): Set the size of the built-in
7329 bool data type to a size of one byte.
7330
7331 2011-02-15 Pedro Alves <pedro@codesourcery.com>
7332 Jan Kratochvil <jan.kratochvil@redhat.com>
7333
7334 * target.c (memory_xfer_live_readonly_partial): Document where to
7335 look for interface description.
7336
7337 2011-02-15 Yao Qi <yao@codesourcery.com>
7338
7339 PR tdep/12352
7340 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
7341 order to store PC value on stack instead of text section.
7342
7343 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
7344
7345 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
7346 the EFP register set size.
7347 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
7348 data from the VMX register.
7349 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
7350 and write data from/to the VMX register.
7351
7352 2011-02-14 Michael Snyder <msnyder@vmware.com>
7353
7354 * command.h (enum command_class): New class 'no_set_class', for
7355 "show" commands without a corresponding "set" command.
7356 * value.c (_initialize_values): Use 'no_set_class' for "show values".
7357 * copying.c (_initialize_copying): Ditto for "show copying" and
7358 "show warranty".
7359 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
7360 "show version".
7361 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
7362 which there is no corresponding "set" command (eg. "show copying").
7363
7364 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7365 Jan Kratochvil <jan.kratochvil@redhat.com>
7366
7367 * exec.c (section_table_available_memory): Change `len' parameter
7368 type to ULONGEST.
7369 * exec.h (section_table_available_memory): Ditto.
7370 * value.h (read_value_memory): Rename the `offset' parameter to
7371 `embedded_offset'.
7372
7373 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7374 Jan Kratochvil <jan.kratochvil@redhat.com>
7375
7376 * memrange.c (compare_mem_ranges): Mention sort order in
7377 describing comment.
7378 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
7379 * tracepoint.c (traceframe_available_memory): Extend comment to
7380 mention what happens to RESULT when the target does not support
7381 the query.
7382
7383 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7384 Jan Kratochvil <jan.kratochvil@redhat.com>
7385
7386 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
7387 range.
7388
7389 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7390
7391 * value.c (value_bits_valid, value_bits_synthetic_pointer):
7392 No longer handle NULL values.
7393
7394 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7395
7396 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
7397 * value.c: Include "exceptions.h".
7398 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
7399 generic error.
7400 * cp-abi.c: Include gdb_assert.h.
7401 (baseclass_offset): Add `embedded_offset' and `val' parameters.
7402 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
7403 errors.
7404 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
7405 parameters. No longer returns -1 on error.
7406 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
7407 `val' parameters.
7408 * cp-valprint.c: Include exceptions.h.
7409 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
7410 the baseclass_offset. Handle unavailable base classes. Use
7411 val_print_invalid_address.
7412 * p-valprint.c: Include exceptions.h.
7413 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
7414 when fetching the baseclass_offset. No longer expect
7415 baseclass_offset returning -1. Handle unavailable base classes.
7416 Use val_print_invalid_address.
7417 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
7418 `valaddr' parameter, and change its type to gdb_byte pointer. Add
7419 `embedded_offset' and `val' parameters. Adjust.
7420 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
7421 parameter, and change its type to gdb_byte pointer. Add
7422 `embedded_offset' and `val' parameters. Adjust. No longer expect
7423 baseclass_offset returning -1.
7424 (value_dynamic_cast): Use value_contents_for_printing rather than
7425 value_contents. Adjust.
7426 (search_struct_field): No longer expect baseclass_offset returning
7427 -1.
7428 (search_struct_method): If reading memory from the target is
7429 necessary, wrap it in a new value to pass to baseclass_offset. No
7430 longer expect baseclass_offset returning -1.
7431 (find_method_list): No longer expect baseclass_offset returning
7432 -1. Use value_contents_for_printing rather than value_contents.
7433 * valprint.c (val_print_invalid_address): New function.
7434 * valprint.h (val_print_invalid_address): Declare.
7435 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
7436 and `val' parameters. No longer expect baseclass_offset returning
7437 -1. Adjust.
7438 * gnu-v2-abi.c: Include "exceptions.h".
7439 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
7440 parameters. Handle unavailable memory. Recurse through
7441 gnuv2_baseclass_offset directly, rather than through
7442 baseclass_offset. No longer returns -1 on not found, instead
7443 throw an error.
7444 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
7445 `val' parameters. Adjust.
7446
7447 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7448
7449 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
7450 almost but not quite adjacent.
7451
7452 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7453
7454 * value.h (value_entirely_available): Declare.
7455 * value.c (value_entirely_available): New function.
7456 * c-valprint.c (c_value_print): Don't try fetching the pointer's
7457 real type if the pointer is unavailable.
7458
7459 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7460
7461 * valops.c (value_repeat): Use read_value_memory instead of
7462 read_memory.
7463
7464 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7465
7466 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
7467 * value.c (value_contents_copy_raw, value_contents_copy): New
7468 functions.
7469 (value_primitive_field): Use value_contents_copy_raw instead of
7470 memcpy.
7471 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
7472 memcpy.
7473 (value_array, value_slice): Ditto.
7474 * valarith.c (value_subscripted_rvalue): Use
7475 value_contents_copy_raw instead of memcpy.
7476
7477 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7478
7479 <unavailable> references.
7480
7481 * valops.c (get_value_at): Use value_from_contents_and_address,
7482 avoiding read_memory.
7483
7484 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7485
7486 * c-valprint.c (c_val_print): Print a string with unavailable
7487 contents as an array.
7488
7489 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7490
7491 * value.h (unpack_bits_as_long): Delete declaration.
7492 (unpack_value_bits_as_long): Declare.
7493 (unpack_value_field_as_long): Declare.
7494 (value_field_bitfield): Declare.
7495 * value.c (unpack_bits_as_long): Rename to...
7496 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
7497 value parameters. Return the extracted result in a new output
7498 parameter. If the value contents are unavailable, return false,
7499 otherwise return true.
7500 (unpack_value_bits_as_long): New.
7501 (unpack_field_as_long): Rename to...
7502 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
7503 Add embedded_offset and value parameters. Return the extracted
7504 result in a new output parameter. If the value contents are
7505 unavailable, return false, otherwise return true.
7506 (unpack_value_field_as_long): New.
7507 (unpack_field_as_long_1): New.
7508 (unpack_field_as_long): Reimplement as wrapper around
7509 unpack_value_field_as_long_1.
7510 (value_field_bitfield): New function.
7511 * valops.c (value_fetch_lazy): When fetching a bitfield, use
7512 unpack_value_bits_as_long. Mark the value as unavailable, if it
7513 is unavailable.
7514 * jv-valprint.c (java_print_value_fields): Use
7515 value_field_bitfield.
7516 * p-valprint.c (pascal_object_print_value_fields): Use
7517 value_field_bitfield.
7518 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
7519
7520 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7521
7522 * value.c (get_internalvar_integer): Also return the int value of
7523 TYPE_CODE_INT INTERNALVAR_VALUE values.
7524 (set_internalvar): Don't special case TYPE_CODE_INT.
7525
7526 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7527
7528 * value.c (struct internalvar) <enum internalvar_kind>: Remove
7529 INTERNALVAR_POINTER.
7530 <pointer>: Delete.
7531 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
7532 (set_internalvar): Remove special TYPE_CODE_PTR handling.
7533 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
7534
7535 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7536
7537 * value.h (value_available_contents_eq): Declare.
7538 * value.c (find_first_range_overlap): New function.
7539 (value_available_contents_eq): New function.
7540 * valprint.c (val_print_array_elements): Use
7541 value_available_contents_eq.
7542 * ada-valprint.c (val_print_packed_array_elements): Use
7543 value_available_contents_eq.
7544 * jv-valprint.c (java_value_print): Use
7545 value_available_contents_eq.
7546
7547 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7548
7549 * target.c (target_read_live_memory): New function.
7550 (memory_xfer_live_readonly_partial): New.
7551 (memory_xfer_partial): If reading from a traceframe, fallback to
7552 reading unavailable read-only memory from read-only regions of
7553 live target memory.
7554 * tracepoint.c (disconnect_tracing): Adjust.
7555 (set_current_traceframe): New, factored out from
7556 set_traceframe_number.
7557 (set_traceframe_number): Reimplement to only change the traceframe
7558 number on the GDB side.
7559 (do_restore_current_traceframe_cleanup): Adjust.
7560 (make_cleanup_restore_traceframe_number): New.
7561 (cur_traceframe_number): New global.
7562 (tfile_open): Set cur_traceframe_number to no traceframe.
7563 (set_tfile_traceframe): New function.
7564 (tfile_trace_find): If looking up a traceframe using any method
7565 other than by number, make sure the current tfile traceframe
7566 matches gdb's current traceframe. Update the current tfile
7567 traceframe if the lookup succeeded.
7568 (tfile_fetch_registers, tfile_xfer_partial)
7569 (tfile_get_trace_state_variable_value): Make sure the remote
7570 traceframe matches gdb's current traceframe.
7571 * remote.c (remote_traceframe_number): New global.
7572 (remote_open_1): Set it to -1.
7573 (set_remote_traceframe): New function.
7574 (remote_fetch_registers, remote_store_registers)
7575 (remote_xfer_memory, remote_xfer_partial)
7576 (remote_get_trace_state_variable_value): Make sure the remote
7577 traceframe matches gdb's current traceframe.
7578 (remote_trace_find): If looking up a traceframe using any method
7579 other than by number, make sure the current remote traceframe
7580 matches gdb's current traceframe. Update the current remote
7581 traceframe if the lookup succeeded.
7582 * infrun.c (fetch_inferior_event): Adjust.
7583 * tracepoint.h (set_current_traceframe): Declare.
7584 (get_traceframe_number, set_traceframe_number): Add describing
7585 comments.
7586
7587 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7588
7589 Mark pieces of values as unavailable if the corresponding memory
7590 is unavailable.
7591
7592 * valops.c: Include tracepoint.h.
7593 (value_fetch_lazy): Use read_value_memory.
7594 (read_value_memory): New.
7595 * value.h (read_value_memory): Declare.
7596 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
7597 * exec.c (section_table_available_memory): New function.
7598 * exec.h (section_table_available_memory): Declare.
7599
7600 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7601
7602 * Makefile.in (SFILES): Add memrange.c.
7603 (HFILES_NO_SRCDIR): Add memrange.h.
7604 (COMMON_OBS): Add memrange.o.
7605 * memrange.c: New file.
7606 * memrange.h: New file.
7607 * tracepoint.c: Include memrange.h.
7608 (struct mem_range): Delete.
7609 (mem_range_s): Delete.
7610 (traceframe_available_memory): New function.
7611 * tracepoint.h (traceframe_available_memory): Declare.
7612
7613 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7614
7615 * target.h (struct traceframe_info): Forward declare.
7616 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
7617 (struct target_ops) <to_traceframe_info>: New field.
7618 (target_traceframe_info): New.
7619 * target.c (update_current_target): Inherit and default
7620 to_traceframe_info.
7621 * remote.c (PACKET_qXfer_traceframe_info): New.
7622 (remote_protocol_features): Register qXfer:traceframe-info:read.
7623 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
7624 (remote_traceframe_info): New.
7625 (init_remote_ops): Install it.
7626 (_initialize_remote): Install "set/show remote traceframe-info"
7627 commands.
7628 * tracepoint.h (parse_traceframe_info): Declare.
7629 * tracepoint.c (struct mem_range): New.
7630 (mem_range_s): New typedef.
7631 (struct traceframe_info): New.
7632 (traceframe_info): New global.
7633 (free_traceframe_info): New function.
7634 (clear_traceframe_info): New function.
7635 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
7636 info.
7637 (build_traceframe_info): New function.
7638 (tfile_traceframe_info): New function.
7639 (init_tfile_ops): Install tfile_traceframe_info.
7640 (traceframe_info_start_memory, free_result): New functions.
7641 (memory_attributes, traceframe_info_elements): New globals.
7642 (parse_traceframe_info, get_traceframe_info): New functions.
7643 * features/traceframe-info.dtd: New file.
7644 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
7645
7646 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7647
7648 Base support for <unavailable> value contents.
7649
7650 * value.h (value_bytes_available): Declare.
7651 (mark_value_bytes_unavailable): Declare.
7652 * value.c (struct range): New struct.
7653 (range_s): New typedef.
7654 (ranges_overlap): New function.
7655 (range_lessthan): New function.
7656 (ranges_contain_p): New function.
7657 (struct value) <unavailable>: New field.
7658 (value_bytes_available): New function.
7659 (mark_value_bytes_unavailable): New function.
7660 (require_not_optimized_out): Constify parameter.
7661 (require_available): New function.
7662 (value_contents_all, value_contents): Require all bytes be
7663 available.
7664 (value_free): Free `unavailable'.
7665 (value_copy): Copy `unavailable'.
7666 * valprint.h (val_print_unavailable): Declare.
7667 * valprint.c (valprint_check_validity): Rename `offset' parameter
7668 to `embedded_offset'. If printing a scalar, check whether the
7669 value chunk is available.
7670 (val_print_unavailable): New.
7671 (val_print_scalar_formatted): Check whether the value is
7672 available.
7673 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
7674 pretty-printing unavailable values.
7675
7676 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7677
7678 Fix const/volatile qualifiers of C++ types, PR c++/12328.
7679 * c-typeprint.c (c_type_print_args): Update the function comment. New
7680 variable param_type, initialize it. Remove const/volatile qualifiers
7681 for language_cplus and !show_artificial. Use param_type.
7682
7683 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7684
7685 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
7686 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
7687 * symtab.h (struct symtab) <next>: Comment extension.
7688
7689 2011-02-12 Yao Qi <yao@codesourcery.com>
7690
7691 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
7692
7693 2011-02-11 Yao Qi <yao@codesourcery.com>
7694
7695 * common/Makefile.in: Add copyright header.
7696
7697 2011-02-11 Pedro Alves <pedro@codesourcery.com>
7698
7699 * infrun.c (proceed): Move switching out and in of tfind mode from
7700 here ...
7701 (fetch_inferior_event): ... to here.
7702
7703 2011-02-11 Yao Qi <yao@codesourcery.com>
7704
7705 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7706 libcommon.a.
7707 * configure.ac: Add common to sub dir.
7708 * configure: Regenerate.
7709
7710 2011-02-11 Yao Qi <yao@codesourcery.com>
7711
7712 Build libcommon.a.
7713
7714 * common/Makefile.in: New.
7715 * common/configure.ac: New.
7716 * common/aclocal.m4: New.
7717 * common/configure: Generate.
7718
7719 2011-02-10 Pedro Alves <pedro@codesourcery.com>
7720
7721 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7722 side of the parenthesis.
7723
7724 Merge from GCC:
7725 2010-07-13 Jakub Jelinek <jakub@redhat.com>
7726 * vec.h (VEC_block_remove): Fix comment.
7727
7728 2011-02-08 Michael Snyder <msnyder@vmware.com>
7729
7730 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7731
7732 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7733
7734 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7735 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7736 psubd and paddd.
7737
7738 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7739
7740 PR 12361.
7741 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7742 phsubsw.
7743 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7744 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7745
7746 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7747
7748 * dwarf2read.c (read_subroutine_type): Set special calling
7749 convention flag for functions compiled by IBM XL C for OpenCL.
7750 * ppc-sysv-tdep.c: Include "dwarf2.h"
7751 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7752 calling convention.
7753 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
7754 IBM OpenCL vector types calling convention.
7755 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7756 (ppc_sysv_abi_broken_return_value): Likewise.
7757 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7758 types calling convention.
7759 (ppc64_sysv_abi_return_value): Likewise.
7760 * spu-tdep.c: Include "dwarf2.h"
7761 (spu_return_value): Implement IBM OpenCL vector types calling
7762 convention.
7763
7764 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7765
7766 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7767 correct ABI for AltiVec vector arguments.
7768
7769 2011-02-07 Pedro Alves <pedro@codesourcery.com>
7770
7771 * valprint.c (val_print): Extend comment.
7772 * ada-valprint.c (ada_valprint): Rewrite comment deferring
7773 interface explanation to val_print.
7774 (ada_val_print_array): Adjust comment to current interface.
7775 (print_field_values): Adjust comment to current interface.
7776 * c-valprint.c (c_val_print): Rewrite comment deferring interface
7777 explanation to val_print.
7778 * f-valprint.c (f_val_print): Ditto.
7779 * jv-valprint.c (java_val_print): Ditto.
7780 * m2-valprint.c (m2_val_print): Ditto.
7781 * p-valprint.c (pascal_val_print): Ditto.
7782
7783 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
7784
7785 * breakpoint.c (parse_breakpoint_sals): Fix description.
7786
7787 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
7788 Oguz Kayral <oguzkayral@gmail.com>
7789
7790 * python/py-inferior.c (python_on_normal_stop): New function.
7791 (python_on_resume): New function.
7792 (python_inferior_exit): New function.
7793 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7794 inferior_exit observers.
7795 * python/py-evtregistry.c: New file.
7796 * python/py-threadevent.c : New file.
7797 * python/py-event.c: New file.
7798 * python/py-evts.c: New file.
7799 * python/py-continueevent.c: New file.
7800 * python/py-bpevent.c: New file.
7801 * python/py-signalevent.c: New file.
7802 * python/py-exetiedevent.c: New file.
7803 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7804 Move struct breakpoint_object from here...
7805 * python/python-internal.h: ... to here.
7806 * python/py-event.h: New file.
7807 * python/py-events.h: New file.
7808 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7809 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7810 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7811 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7812 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7813 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7814 Add build rules for all the above.
7815
7816 2011-02-04 Tom Tromey <tromey@redhat.com>
7817
7818 * dwarf2read.c (dwarf2_section_empty_p): New function.
7819 (dwarf2_read_section): Use dwarf2_section_empty_p.
7820 (dwarf2_section_size): New function.
7821 (dwarf2_get_section_info): Unconditionally read section.
7822 (dwarf2_read_index): Use dwarf2_section_empty_p.
7823 (partial_read_comp_unit_head): Use dwarf2_section_size.
7824 (dwarf2_symbol_mark_computed): Likewise.
7825
7826 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7827
7828 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7829
7830 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7831
7832 * mips-linux-tdep.c: Include xml-syscall.h.
7833 (mips_linux_get_syscall_number): New function.
7834 (mips_linux_init_abi): Add calls to
7835 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7836 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7837 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7838 * syscalls/mips-n32-linux.xml: New file.
7839 * syscalls/mips-n64-linux.xml: New file.
7840 * syscalls/mips-o32-linux.xml: New file.
7841
7842 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7843
7844 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7845 Complain about inverted range entries.
7846 (dwarf2_record_block_ranges): Likewise.
7847
7848 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7849
7850 Fix some typos.
7851 * breakpoint.c (update_watchpoint): Fix name of the
7852 update_global_location_list function.
7853 (print_one_breakpoint): Fix typo.
7854 (_initialize_breakpoint): Remove extra space in hbreak help
7855 string.
7856 * breakpoint.h (struct bp_location) <length>: Fix field
7857 description.
7858
7859 2011-02-04 Pedro Alves <pedro@codesourcery.com>
7860
7861 * regcache.c (registers_changed_ptid): Don't explictly always
7862 clear `current_regcache'. Only clear current_thread_ptid and
7863 current_thread_arch when PTID matches. Only reinit the frame
7864 cache if PTID matches the current inferior_ptid. Move alloca(0)
7865 call to ...
7866 (registers_changed): ... here.
7867
7868 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
7869
7870 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7871 starts with __stack_chk_guard as stack guard symbol.
7872
7873 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
7874
7875 * disasm.c (compare_lines): Handle the end of sequence markers
7876 within the line table to better support disassembling over
7877 compilation unit boundaries.
7878
7879 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7880
7881 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7882 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
7883 implementation even if no symbols are available.
7884 (thumb_analyze_prologue): Update call to skip_prologue_function.
7885 (arm_analyze_prologue): Likewise.
7886
7887 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7888
7889 * arm-tdep.c: Include "observer.h".
7890 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7891 (arm_exidx_data_key): New static variable.
7892 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7893 (struct arm_exidx_data): Likewise.
7894 (arm_exidx_data_free): New function.
7895 (arm_compare_exidx_entries): Likewise.
7896 (arm_obj_section_from_vma): Likewise.
7897 (arm_exidx_new_objfile): Likewise.
7898 (arm_find_exidx_entry): Likewise.
7899 (arm_exidx_fill_cache): Likewise.
7900 (arm_exidx_unwind_sniffer): Likewise.
7901 (arm_exidx_unwind): New global variable.
7902 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7903 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7904 observer. Register arm_exidx_data_key as objfile data.
7905
7906 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7907
7908 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7909 due to accessing uninitialized variable. Fix indentation.
7910
7911 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7912
7913 * c-valprint.c (c_value_print): When doing virtual base pointer
7914 adjustment, create a new value with adjusted contents rather than
7915 changing the contents of the value being printed (and getting it
7916 wrong).
7917
7918 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7919
7920 * xml-support.c (xml_find_attribute): New.
7921 (xinclude_start_include): Use it.
7922 * xml-support.h (xml_find_attribute): Declare.
7923 * memory-map.c (memory_map_start_memory)
7924 (memory_map_start_property): Use xml_find_attribute.
7925 * osdata.c (osdata_start_osdata, osdata_start_column): Use
7926 xml_find_attribute.
7927 * remote.c (start_thread): Use xml_find_attribute.
7928 * solib-target.c (library_list_start_segment)
7929 (library_list_start_section, library_list_start_library)
7930 (library_list_start_list): Use xml_find_attribute.
7931 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7932 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7933 (tdesc_start_field): Use xml_find_attribute.
7934
7935 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
7936
7937 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7938 (BUILD_OCL_VTYPES): Update.
7939
7940 2011-02-02 Joel Brobecker <brobecker@adacore.com>
7941
7942 * configure.ac: Work around non-GNU sed limitation when computing
7943 python version number.
7944 * configure: Regenerate.
7945
7946 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7947
7948 Fix debug printing of TYPE_INSTANCE.
7949 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7950 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7951
7952 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7953
7954 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7955 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7956 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7957 * ada-operator.inc: Rename the file to ...
7958 * ada-operator.def: ... here, wrap all the entries by macro OP.
7959 * expprint.c (op_name_standard): Remove all the entries. Include
7960 "std-operator.def" instead.
7961 * expression.h (enum exp_opcode): Include "std-operator.def" and
7962 "ada-operator.def". Move all the entries ...
7963 * std-operator.def: ... here, wrap all the entries by macro OP.
7964
7965 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7966
7967 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7968 * breakpoint.c (remove_jit_event_breakpoints): New function.
7969 * jit.c (jit_descriptor_addr): Delete.
7970 (registering_code): Delete.
7971 (clear_int): Delete.
7972 (jit_inferior_data): New variable.
7973 (struct jit_inferior_data): New type.
7974 (get_jit_inferior_data): New function.
7975 (jit_inferior_data_cleanup): New function.
7976 (jit_read_descriptor): Adjust.
7977 (jit_register_code): Adjust.
7978 (jit_breakpoint_re_set_internal): New function; move code here ...
7979 (jit_inferior_init): ... from here.
7980 (jit_breakpoint_re_set): Adjust.
7981 (jit_reset_inferior_data_and_breakpoints): New function.
7982 (jit_inferior_created_observer): Adjust.
7983 (jit_inferior_exit_hook): Adjust.
7984 (jit_executable_changed_observer): New function.
7985 (jit_event_handler): Adjust.
7986 (_initialize_jit): Adjust.
7987
7988 2011-01-31 Michael Snyder <msnyder@vmware.com>
7989
7990 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7991 line.
7992
7993 2011-01-31 Tom Tromey <tromey@redhat.com>
7994
7995 PR python/12216:
7996 * python/python.c (execute_gdb_command): Call
7997 prevent_dont_repeat.
7998 * top.c (suppress_dont_repeat): New global.
7999 (dont_repeat): Use it.
8000 (prevent_dont_repeat): New function.
8001 * command.h (prevent_dont_repeat): Declare.
8002
8003 2011-01-31 Tom Tromey <tromey@redhat.com>
8004
8005 * infcmd.c (finish_backward): Use breakpoint_set_silent.
8006 * python/py-breakpoint.c (bppy_set_silent): Use
8007 breakpoint_set_silent.
8008 (bppy_set_thread): Use breakpoint_set_thread.
8009 (bppy_set_task): Use breakpoint_set_task.
8010 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
8011 (breakpoint_set_task): Declare.
8012 (make_breakpoint_silent): Remove.
8013 * breakpoint.c (breakpoint_set_silent): New function.
8014 (breakpoint_set_thread): Likewise.
8015 (breakpoint_set_task): Likewise.
8016 (make_breakpoint_silent): Remove.
8017
8018 2011-01-31 Tom Tromey <tromey@redhat.com>
8019
8020 * breakpoint.h (user_breakpoint_p): Declare.
8021 * breakpoint.c (user_breakpoint_p): New function.
8022 (breakpoint_1): Use it.
8023 (save_breakpoints): Likewise.
8024
8025 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8026
8027 * configure.ac: Add handling of Python distribution on Windows.
8028 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
8029 sysconfig variables are not defined, then do not use them.
8030 On Windows, if LIBPL is not defined, then use prefix + '/libs'
8031 instead. On Windows, return all paths using forward-slashes
8032 rather than backslashes.
8033
8034 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8035
8036 * configure.ac: Remove fallback behavior for building
8037 against Python. Remove tweaking of Python include path.
8038 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
8039 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
8040 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
8041 Always restore CPPFLAGS and LIBS after linking test.
8042 * configure: Regenerated.
8043 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
8044 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
8045 * python/python-internal.h: Adjust includes of Python .h files.
8046
8047 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8048
8049 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
8050 in error message.
8051
8052 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8053
8054 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
8055 value test.
8056
8057 2011-01-31 Yao Qi <yao@codesourcery.com>
8058
8059 * arm-linux-nat.c: Update calls to regcache_register_status
8060 instead of regcache_valid_p.
8061 * aix-thread.c: Likewise.
8062 * i386gnu-nat.c: Likewise.
8063
8064 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8065
8066 Fix crash.
8067 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
8068 touching TYPE_FIELD_ARTIFICIAL.
8069
8070 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
8071
8072 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
8073 Committers.
8074
8075 2011-01-28 Pedro Alves <pedro@codesourcery.com>
8076
8077 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
8078 selected, don't try iterating over the traceframe's blocks.
8079 (tfile_has_stack): If there's no traceframe selected, then there's
8080 no stack.
8081 (tfile_has_registers): If there's no traceframe selected, then
8082 there's no registers.
8083
8084 2011-01-28 Pedro Alves <pedro@codesourcery.com>
8085
8086 * target.c (memory_xfer_partial): No need to restore shadows if we
8087 haven't read anything.
8088
8089 2011-01-28 Pedro Alves <pedro@codesourcery.com>
8090
8091 * mips-tdep.c (mips_print_register): Use get_frame_register_value
8092 and val_print_scalar_formatted.
8093
8094 2011-01-27 Pedro Alves <pedro@codesourcery.com>
8095
8096 * tracepoint.c (tfile_read): New.
8097 (tfile_open): Use it.
8098 (tfile_get_traceframe_address): Use it.
8099 (tfile_trace_find): Use it.
8100 (walk_blocks_callback_func): New typedef.
8101 (match_blocktype): New function.
8102 (traceframe_walk_blocks): New function.
8103 (traceframe_find_block_type): New function.
8104 (tfile_fetch_registers, tfile_xfer_partial)
8105 (tfile_get_trace_state_variable_value): Use
8106 traceframe_find_block_type and tfile_read.
8107
8108 2011-01-26 Kevin Buettner <kevinb@redhat.com>
8109
8110 * remote-mips.c: Add internationalization mark ups. Remove
8111 trailing \n from already marked up strings.
8112
8113 2011-01-26 Tom Tromey <tromey@redhat.com>
8114
8115 * python/py-prettyprint.c (print_string_repr): Clear
8116 'addressprint' option when calling val_print_string.
8117 (print_children): Handle Val_pretty_default. Clear 'addressprint'
8118 option when calling val_print_string.
8119
8120 2011-01-26 Tom Tromey <tromey@redhat.com>
8121
8122 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
8123 GDB_PY_LL_ARG.
8124 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
8125 macros.
8126 (gdb_py_longest, gdb_py_ulongest): New typedefs.
8127 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
8128 (gdb_py_long_as_ulongest): New defines.
8129 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
8130 (gdb_py_int_as_long): Declare.
8131 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
8132 GDB_PY_LL_ARG, gdb_py_object_from_longest.
8133 (valpy_long): Add comment.
8134 * python/py-utils.c (get_addr_from_python): Use
8135 gdb_py_long_as_ulongest. Handle overflow properly.
8136 (gdb_py_object_from_longest): New function.
8137 (gdb_py_object_from_ulongest): Likewise.
8138 (gdb_py_int_as_long): Likewise.
8139 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
8140 * python/py-symtab.c (salpy_get_pc): Use
8141 gdb_py_long_from_ulongest.
8142 (salpy_get_line): Use PyInt_FromLong.
8143 * python/py-param.c (set_parameter_value): Use
8144 gdb_py_int_as_long.
8145 * python/py-lazy-string.c (stpy_get_address): Use
8146 gdb_py_long_from_ulongest.
8147 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
8148 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
8149 * python/py-breakpoint.c (bppy_set_thread): Use
8150 gdb_py_int_as_long.
8151 (bppy_set_task): Likewise.
8152 (bppy_set_ignore_count): Likewise.
8153 (bppy_set_hit_count): Likewise.
8154 * python/py-block.c (blpy_get_start): Use
8155 gdb_py_object_from_ulongest.
8156 (blpy_get_end): Likewise.
8157 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
8158
8159 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
8160
8161 PR/symtab 11766:
8162 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
8163 * gdb/solib.c (solib_read_symbols): Check for addr_low in
8164 equality test for objfile, initialize addr_low if needed.
8165
8166 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8167
8168 * tui/tui-regs.c (tui_register_format): Remove dead code.
8169
8170 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8171
8172 * printcmd.c (print_formatted): Use val_print_scalar_formatted
8173 instead of print_scalar_formatted.
8174 (print_scalar_formatted): Don't handle 's' format strings here,
8175 and add an assertion that we never see such format here.
8176 * valprint.h (val_print_scalar_formatted): Declare.
8177 * valprint.c (val_print_scalar_formatted): New.
8178 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
8179 instead of print_scalar_formatted.
8180 * jv-valprint.c (java_val_print): Ditto.
8181 * p-valprint.c (pascal_val_print): Ditto.
8182 * ada-valprint.c (ada_val_print_1): Ditto.
8183 * f-valprint.c (f_val_print): Ditto.
8184 * infcmd.c (registers_info): Ditto.
8185 * m2-valprint.c (m2_val_print): Ditto.
8186
8187 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8188
8189 * m2-valprint.c (print_unbounded_array): Pass
8190 value_contents_for_printing rather than value_contents, to
8191 m2_print_array_contents. Also pass in the value.
8192
8193 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8194
8195 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
8196 (save_gdb_index_command): Switch to .gdb_index version 4.
8197
8198 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8199
8200 * mi/mi-main.c (get_register): Use get_frame_register_value rather
8201 than frame_register, and always pass a valid value to val_print.
8202
8203 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8204
8205 Centralize printing "<optimized out>".
8206
8207 * valprint.h (val_print_optimized_out): Declare.
8208 * cp-valprint.c (cp_print_value_fields): Use
8209 val_print_optimized_out.
8210 * jv-valprint.c (java_print_value_fields): Ditto.
8211 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8212 * printcmd.c (print_formatted): Ditto.
8213 * valprint.c (valprint_check_validity): Ditto.
8214 (value_check_printable): Ditto.
8215 (val_print_optimized_out): New.
8216
8217 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8218
8219 * infcmd.c (default_print_registers_info): Allocate values so to
8220 never pass a NULL value to val_print.
8221
8222 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8223
8224 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
8225 boolean. Make sure to always pass a value that matches the
8226 contents buffer to callees. Preserve `address' for following
8227 iterations.
8228 * value.c (value_contents_for_printing_const): New.
8229 (value_address): Constify value argument.
8230 * value.h (value_contents_for_printing_const): Declare.
8231 (value_address): Constify value argument.
8232
8233 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8234
8235 * regcache.c (struct regcache_descr): Rename
8236 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
8237 and sizeof_cooked_register_valid_p to
8238 sizeof_cooked_register_status.
8239 (init_regcache_descr): Adjust.
8240 (struct regcache): Rename register_valid_p field to
8241 register_status.
8242 (regcache_xmalloc_1, regcache_xfree, regcache_save)
8243 (do_cooked_read): Adjust.
8244 (regcache_valid_p): Rename to ...
8245 (regcache_register_status): ... this. Adjust.
8246 (regcache_invalidate): Adjust.
8247 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
8248 Adjust.
8249 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
8250 as unavailable, not valid.
8251 (regcache_dump): Adjust.
8252 * regcache.h (enum register_status): New.
8253 (regcache_register_status): Declare.
8254 (regcache_invalidate): Delete declaration.
8255 * corelow.c (get_core_registers): Adjust.
8256 * tracepoint.c (tfile_fetch_registers): Adjust.
8257 * trad-frame.c (REG_VALUE): Rename to ...
8258 (TF_REG_VALUE): ... this.
8259 (REG_UNKNOWN): Rename to ...
8260 (TF_REG_UNKNOWN): ... this.
8261 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
8262 * mi/mi-main.c (register_changed_p): Adjust.
8263
8264 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8265
8266 * regcache.c (struct regcache_descr): Remove outdated comment.
8267 (init_regcache_descr): Remove sizeof_raw_register_valid_p
8268 overallocate hack.
8269 (regcache_xmalloc): Rename to ...
8270 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
8271 Allocate the regcache type accordingly.
8272 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
8273 (regcache_xfree): Asser the source is also readonly. Copy sizeof
8274 cooked registers, not raw.
8275 (regcache_dup_no_passthrough): Delete.
8276 (get_thread_arch_regcache): Use regcache_xmalloc_1.
8277 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
8278 mention obsolete write_register_bytes.
8279 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
8280
8281 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8282
8283 Stop remote_read_bytes from handling partial reads itself.
8284
8285 * remote-fileio.c: Include target.h.
8286 (remote_fileio_write_bytes): Delete.
8287 (remote_fileio_func_open, remote_fileio_func_write)
8288 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
8289 target_read_memory.
8290 (remote_fileio_func_stat): Use target_read_memory and
8291 target_write_memory.
8292 (remote_fileio_func_gettimeofday): Use target_write_memory.
8293 (remote_fileio_func_system): Use target_read_memory.
8294 * remote.c (remote_write_bytes): Make it static.
8295 (remote_read_bytes): Don't handle partial reads here.
8296 * remote.h (remote_read_bytes): Delete declaration.
8297
8298 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8299
8300 Simplify XML parsing a bit.
8301
8302 * xml-support.h (gdb_xml_parse_quick): Declare.
8303 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
8304 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
8305 parameter.
8306 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
8307 gdb_xml_create_parser_and_cleanup_1.
8308 (gdb_xml_parse_quick): New.
8309 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
8310 * osdata.c (osdata_parse): Ditto.
8311 * remote.c (remote_threads_info): Ditto.
8312 * solib-target.c (solib_target_parse_libraries): Ditto.
8313 * xml-syscall.c (syscall_parse_xml): Ditto.
8314 * xml-tdesc.c (tdesc_parse_xml): Ditto.
8315
8316 2011-01-24 Kevin Buettner <kevinb@redhat.com>
8317
8318 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
8319 with remote-mips.o added to gdb_target_obs.
8320 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
8321
8322 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8323
8324 * ada-valprint.c (val_print_packed_array_elements): Pass the
8325 correct struct value to val_print.
8326 (ada_val_print_1): Ditto.
8327
8328 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8329
8330 Don't lose embedded_offset in printing routines throughout.
8331
8332 * valprint.h (val_print_array_elements): Change prototype.
8333 * valprint.c (val_print_array_elements): Add `embedded_offset'
8334 parameter, and adjust to pass it down to val_print, while passing
8335 `valaddr' or `address' unmodified. Take embedded_offset into
8336 account when checking repetitions.
8337 * c-valprint.c (c_val_print): Pass embedded_offset to
8338 val_print_array_elements instead of adjusting `valaddr' and
8339 `address'.
8340 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
8341 embedded_offset to val_print_array_elements instead of adjusting
8342 `valaddr'.
8343 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
8344 * p-valprint.c (pascal_val_print): Pass embedded_offset to
8345 val_print_array_elements and pascal_object_print_value_fields
8346 instead of adjusting `valaddr'.
8347 (pascal_object_print_value_fields): Add `offset' parameter, and
8348 adjust to use it.
8349 (pascal_object_print_value): Add `offset' parameter, and adjust to
8350 use it.
8351 (pascal_object_print_static_field): Use
8352 value_contents_for_printing/value_embedded_offset, rather than
8353 value_contents.
8354 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
8355 parameter, and adjust to use it. Use
8356 value_contents_for_printing/value_embedded_offset, rather than
8357 value_contents.
8358 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
8359 (ada_val_print_array): Add `offset' parameter, and adjust to use
8360 it.
8361 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
8362 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
8363 Instead work with offsets. Use
8364 value_contents_for_printing/value_embedded_offset, rather than
8365 value_contents. Change `defer_val_int' local type to CORE_ADDR,
8366 and use value_from_pointer to extract a target pointer, rather
8367 than value_from_longest.
8368 (print_variant_part): Add `offset' parameter. Replace
8369 `outer_valaddr' parameter by a new `outer_offset' parameter.
8370 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8371 (ada_value_print): Use
8372 value_contents_for_printing/value_embedded_offset, rather than
8373 value_contents.
8374 (print_record): Add `offset' parameter, and adjust to pass it
8375 down.
8376 (print_field_values): Add `offset' parameter. Replace
8377 `outer_valaddr' parameter by a new `outer_offset' parameter.
8378 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8379 Use value_contents_for_printing/value_embedded_offset, rather than
8380 value_contents.
8381 * d-valprint.c (dynamic_array_type): Use
8382 value_contents_for_printing/value_embedded_offset, rather than
8383 value_contents.
8384 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
8385 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8386 (java_print_value_fields): Take `offset' into account. Don't
8387 re-adjust `valaddr'. Instead pass down adjusted offsets.
8388 (java_val_print): Take `embedded_offset' into account. Pass it to
8389 java_print_value_fields.
8390 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
8391 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
8392 down adjusted offsets.
8393 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
8394 (f_val_print): Take `embedded_offset' into account.
8395
8396 2011-01-21 Joel Brobecker <brobecker@adacore.com>
8397
8398 * inflow.c: Include "gdbcmd.h".
8399 (interactive_mode): New static global, moved here from top.c.
8400 (show_interactive_mode): New function, moved here from top.c.
8401 use gdb_has_a_terminal instead of input_from_terminal_p to
8402 determine the current mode.
8403 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
8404 setting.
8405 (_initialize_inflow): Add the "set/show interactive-mode"
8406 commands. Moved here from top.c, after having adjusted slightly
8407 the help text.
8408 * top.c (interactive_mode, show_interactive_mode): Delete, moved
8409 to inflow.c.
8410 (input_from_terminal_p): Remove handling of "interactive-mode"
8411 setting, moved to infow.c.
8412 (init_main): Remove creation of the "set/show interactive-mode"
8413 commands, moved to inflow.c.
8414
8415 2011-01-19 Joel Brobecker <brobecker@adacore.com>
8416
8417 * NEWS: Add entry for native ia64-hpux support.
8418
8419 2011-01-19 Tom Tromey <tromey@redhat.com>
8420
8421 PR mi/8618:
8422 * thread.c (free_thread): Free 'name'.
8423 (print_thread_info): Emit thread name. Change CLI output.
8424 (thread_name_command): New function.
8425 (do_captured_thread_select): Emit newline.
8426 (_initialize_thread): Register 'thread name' command.
8427 * target.h (struct target_ops) <to_thread_name>: New field.
8428 (target_thread_name): New macro.
8429 * target.c (update_current_target): Handle to_thread_name.
8430 * python/py-infthread.c (thpy_get_name): New function.
8431 (thpy_set_name): Likewise.
8432 (thread_object_getset): Add "name".
8433 * linux-nat.c (linux_nat_thread_name): New function.
8434 (linux_nat_add_target): Set to_thread_name.
8435 * gdbthread.h (struct thread_info) <name>: New field.
8436
8437 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8438
8439 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
8440 (ada_val_print_1): Likewise.
8441
8442 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8443
8444 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
8445 upper limit address is not greater than the function end address
8446 when the upper limit could not be computed using the debugging
8447 info.
8448
8449 2011-01-17 Tom Tromey <tromey@redhat.com>
8450
8451 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
8452 get_regcomp_error.
8453 * utils.c: Include gdb_regex.h.
8454 (do_regfree_cleanup): New function.
8455 (make_regfree_cleanup): Likewise.
8456 (get_regcomp_error): Likewise.
8457 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
8458
8459 2011-01-17 Tom Tromey <tromey@redhat.com>
8460
8461 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
8462 re_compile_fastmap.
8463
8464 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
8465
8466 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
8467 for internal variables.
8468 (last_was_structop): New static variable.
8469 (COMPLETE): New token.
8470 (field_exp): New rule to group all '.' suffix handling.
8471 Add mark_struct_expression calls when approriate to be able
8472 to correctly find fields for completion.
8473 (yylex): Adapt to handle field completion and set INTVAR when
8474 required.
8475
8476 2011-01-14 Yao Qi <yao@codesourcery.com>
8477
8478 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
8479 save_reggroup, restore_reggroup and all_reggroup.
8480
8481 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8482
8483 * ada-valprint. (ada_printchar): Use the correct type length
8484 in call to ada_emit_char.
8485 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
8486
8487 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
8488
8489 * solib-som.h (hpux_major_release): Declare variable here.
8490 * solib-som.c: Remove <sys/utsname.h> header.
8491 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
8492 (hpux_major_release): Make global, change default value to
8493 DEFAULT_HPUX_MAJOR_RELEASE.
8494 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
8495 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
8496 Add "solib-som.h" header.
8497 (set_hpux_major_release): New function.
8498 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
8499
8500 2011-01-14 Mike Frysinger <vapier@gentoo.org>
8501
8502 * configure.tgt (*-*-uclinux*): Match more Linux os targets
8503
8504 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8505
8506 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
8507 new-line at end of warning message.
8508 (ia64_hpux_store_register): Remove trailing new-line at end of
8509 error message.
8510 * ia64-hpux-tdep.c: Rephrase comment.
8511 * solib-ia64-hpux.c (struct dld_info): Change type of field
8512 dld_flags from "long long" to ULONGEST.
8513
8514 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8515
8516 * target.h (deprecated_child_ops): Delete declaration.
8517 * target.c (deprecated_child_ops): Delete definition.
8518
8519 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8520
8521 * Makefile.in (hpux-thread.o): Delete rule.
8522 * configure.ac: Don't check for HPUX DCE threads support.
8523 * configure, config.in: Regenerate.
8524 * hppa-hpux-nat.c (child_suppress_run): Delete.
8525 (hppa_hpux_child_can_run): Delete.
8526 (_initialize_hppa_hpux_nat): Don't override to_can_run.
8527 * hpux-thread.c: Delete.
8528
8529 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8530
8531 * hpux-thread.c (hpux_pid_to_str): Delete.
8532
8533 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8534
8535 * ada-valprint.c (ada_emit_char): Remove strange code.
8536 Check that c is <= UCHAR_MAX before passing it to isascii.
8537 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
8538
8539 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8540
8541 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
8542 to the case where instream is stdin.
8543
8544 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8545
8546 * ia64-tdep.h (struct regcache): Forward declare.
8547 (struct ia64_infcall_ops): New struct type.
8548 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
8549 and "infcall_ops".
8550 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
8551 Renames ia64_find_global_pointer.
8552 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
8553 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
8554 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
8555 methods.
8556 (ia64_infcall_ops): New static global constant.
8557 (ia64_gdbarch_init): Set tdep->infcall_ops.
8558 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
8559 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
8560 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
8561 (ia64_hpux_dummy_code): New static global constant.
8562 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
8563 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
8564 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
8565 New function.
8566 (ia64_hpux_infcall_ops): New static global constant.
8567 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
8568 for inferior function calls to work properly on ia64-hpux.
8569
8570 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8571
8572 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
8573 * ia64-tdep.h (struct frame_info): forward declaration.
8574 (struct gdbarch_tdep): Add field size_of_register_frame.
8575 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
8576 to determine the size of the register frame.
8577 (ia64_size_of_register_frame): New function.
8578 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
8579 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
8580 (IA64_HPUX_UREG_REASON): New macro.
8581 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
8582 New functions.
8583 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
8584 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
8585 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
8586 objects.
8587
8588 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8589
8590 Add support for ia64-hpux.
8591 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
8592 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
8593
8594 * configure.host: Add handling for ia64-hpux hosts. Add associated
8595 floatformats.
8596 * configure.tgt: Add handling for ia64-hpux targets.
8597 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
8598 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
8599 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
8600
8601 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8602
8603 [ttrace] Compute thread list immediately after attach.
8604 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
8605 New subprogram.
8606 (inf_ttrace_attach): Use it.
8607
8608 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8609
8610 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
8611 if we could not determine the frame's function address. Instead,
8612 use the frame's PC, and then continue.
8613
8614 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8615
8616 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
8617 not already defined.
8618
8619 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8620
8621 * ia64-tdep.c (ia64_struct_type_p): New function.
8622 (ia64_extract_return_value): Handle integral values that are
8623 less than 8 bytes long.
8624 (ia64_push_dummy_call): Likewise.
8625
8626 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8627
8628 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
8629 floatformat_ia64_ext.
8630 (floatformat_ia64_ext_big): New static const.
8631 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
8632
8633 2011-01-12 Tom Tromey <tromey@redhat.com>
8634
8635 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
8636 messages.
8637 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
8638 (mi_cmd_thread_list_ids): Likewise.
8639 (mi_cmd_data_list_changed_registers): Likewise.
8640 (mi_cmd_data_list_register_values): Likewise.
8641 (mi_cmd_data_write_register_values): Likewise.
8642 (mi_cmd_data_evaluate_expression): Likewise.
8643 (mi_cmd_data_read_memory): Likewise.
8644 (mi_cmd_data_read_memory_bytes): Likewise.
8645 (mi_cmd_data_write_memory): Likewise.
8646 (mi_cmd_enable_timings): Likewise.
8647 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
8648 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
8649 (mi_cmd_var_delete): Likewise.
8650 (mi_cmd_var_set_format): Likewise.
8651 (mi_cmd_var_show_format): Likewise.
8652 (mi_cmd_var_info_num_children): Likewise.
8653 (mi_cmd_var_list_children): Likewise.
8654 (mi_cmd_var_info_type): Likewise.
8655 (mi_cmd_var_info_expression): Likewise.
8656 (mi_cmd_var_show_attributes): Likewise.
8657 (mi_cmd_var_assign): Likewise.
8658 (mi_cmd_var_update): Likewise.
8659 (mi_cmd_enable_pretty_printing): Likewise.
8660 (mi_cmd_var_set_update_range): Likewise.
8661 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
8662 messages.
8663 (mi_cmd_target_file_put): Likewise.
8664 (mi_cmd_target_file_delete): Likewise.
8665 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
8666 messages.
8667 (mi_cmd_stack_info_depth): Likewise.
8668 (mi_cmd_stack_list_locals): Likewise.
8669 (mi_cmd_stack_list_args): Likewise.
8670 (mi_cmd_stack_select_frame): Likewise.
8671 (mi_cmd_stack_select_frame): Likewise.
8672 (mi_cmd_stack_info_frame): Likewise.
8673 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
8674 messages.
8675 (mi_cmd_file_list_exec_source_files): Likewise.
8676 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
8677 (mi_cmd_env_cd): Likewise.
8678 (mi_cmd_env_path): Likewise.
8679 (mi_cmd_env_dir): Likewise.
8680 (mi_cmd_inferior_tty_show): Likewise.
8681 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
8682 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
8683 (mi_cmd_break_watch): Likewise.
8684
8685 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
8686
8687 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
8688 (ppc_linux_insert_hw_breakpoint): Likewise.
8689 (ppc_linux_remove_hw_breakpoint): Likewise.
8690 (ppc_linux_insert_watchpoint): Likewise.
8691
8692 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8693 Jan Kratochvil <jan.kratochvil@redhat.com>
8694
8695 PR fortran/11104 and DWARF unbound arrays detection.
8696 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
8697 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
8698 unspecified upper bound.
8699 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
8700 variables array_size_array, tmp_type and offset_item. New variable
8701 array. Remove call to f77_get_upperbound. New variables array_type
8702 and index. Call value_subscripted_rvalue for each dimenasion. Remove
8703 the final call to deprecated_set_value_type.
8704
8705 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8706
8707 Make value allocations more lazy.
8708 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8709 instead of allocate_value and set_value_lazy when possible.
8710 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
8711 instead of allocate_value and set_value_lazy.
8712 * findvar.c (value_of_register_lazy): Likewise.
8713 (read_var_value): Remove V preallocation, call just check_typedef in
8714 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
8715 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8716 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
8717 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
8718 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
8719 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
8720 the end, remove set_value_lazy there.
8721 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8722 instead of allocate_value and set_value_lazy when possible.
8723 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8724 * value.c (allocate_computed_value): Use allocate_value_lazy instead
8725 of allocate_value and set_value_lazy.
8726 (value_from_contents_and_address): Use allocate_value_lazy instead of
8727 allocate_value and set_value_lazy when possible.
8728
8729 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8730
8731 * disasm.c (dump_insns): Support dumping opcodes for MI.
8732 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8733 dumping of instruction opcodes.
8734
8735 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
8736
8737 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8738 appropiately.
8739
8740 2011-01-11 Tom Tromey <tromey@redhat.com>
8741
8742 * thread.c (do_captured_thread_select): Emit newline before
8743 printing frame.
8744
8745 2011-01-11 Michael Snyder <msnyder@vmware.com>
8746
8747 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8748 * score-tdep.c: Ditto.
8749 * score-tdep.h: Ditto.
8750 * ser-base.c: Ditto.
8751 * ser-go32.c: Ditto.
8752 * serial.c: Ditto.
8753 * serial.h: Ditto.
8754 * ser-mingw.c: Ditto.
8755 * ser-pipe.c: Ditto.
8756 * ser-tcp.c: Ditto.
8757 * ser-unix.c: Ditto.
8758 * sh64-tdep.c: Ditto.
8759 * shnbsd-nat.c: Ditto.
8760 * sh-tdep.c: Ditto.
8761 * sh-tdep.h: Ditto.
8762 * solib.c: Ditto.
8763 * solib-darwin.c: Ditto.
8764 * solib-frv.c: Ditto.
8765 * solib.h: Ditto.
8766 * solib-irix.c: Ditto.
8767 * solib-osf.c: Ditto.
8768 * solib-pa64.c: Ditto.
8769 * solib-som.c: Ditto.
8770 * solib-spu.c: Ditto.
8771 * solib-sunos.c: Ditto.
8772 * solib-svr4.c: Ditto.
8773 * solist.h: Ditto.
8774 * sol-thread.c: Ditto.
8775 * somread.c: Ditto.
8776 * source.c: Ditto.
8777 * source.h: Ditto.
8778 * sparc64-linux-tdep.c: Ditto.
8779 * sparc64-tdep.c: Ditto.
8780 * sparc-linux-nat.c: Ditto.
8781 * sparc-linux-tdep.c: Ditto.
8782 * sparc-sol2-nat.c: Ditto.
8783 * sparc-sol2-tdep.c: Ditto.
8784 * sparc-tdep.c: Ditto.
8785 * sparc-tdep.h: Ditto.
8786 * spu-tdep.c: Ditto.
8787 * stabsread.c: Ditto.
8788 * stabsread.h: Ditto.
8789 * stack.c: Ditto.
8790 * symfile.c: Ditto.
8791 * symfile.h: Ditto.
8792 * symmisc.c: Ditto.
8793 * symtab.c: Ditto.
8794 * symtab.h: Ditto.
8795 * target.c: Ditto.
8796 * target-descriptions.c: Ditto.
8797 * target-descriptions.h: Ditto.
8798 * target.h: Ditto.
8799 * target-memory.c: Ditto.
8800 * terminal.h: Ditto.
8801 * thread.c: Ditto.
8802 * top.c: Ditto.
8803 * tracepoint.c: Ditto.
8804 * tracepoint.h: Ditto.
8805 * trad-frame.h: Ditto.
8806 * typeprint.c: Ditto.
8807
8808 2011-01-11 Michael Snyder <msnyder@vmware.com>
8809
8810 * ui-file.c: Comment cleanup, mostly periods and spaces.
8811 * ui-file.h: Ditto.
8812 * ui-out.c: Ditto.
8813 * ui-out.h: Ditto.
8814 * utils.c: Ditto.
8815 * v850-tdep.c: Ditto.
8816 * valarith.c: Ditto.
8817 * valops.c: Ditto.
8818 * valprint.c: Ditto.
8819 * valprint.h: Ditto.
8820 * value.c: Ditto.
8821 * value.h: Ditto.
8822 * varobj.c: Ditto.
8823 * varobj.h: Ditto.
8824 * vax-tdep.c: Ditto.
8825 * vec.c: Ditto.
8826 * vec.h: Ditto.
8827 * version.h: Ditto.
8828 * windows-nat.c: Ditto.
8829 * windows-tdep.c: Ditto.
8830 * xcoffread.c: Ditto.
8831 * xcoffsolib.c: Ditto.
8832 * xml-support.c: Ditto.
8833 * xstormy16-tdep.c: Ditto.
8834 * xtensa-tdep.c: Ditto.
8835 * xtensa-tdep.h: Ditto.
8836
8837 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8838
8839 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8840 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8841
8842 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8843 Thiago Jung Bauermann <bauerman@br.ibm.com>
8844
8845 Implement support for PowerPC BookE ranged watchpoints.
8846 * breakpoint.h
8847 (struct breakpoint_ops) <resources_needed>: New method.
8848 Initialize to NULL in all existing breakpoint_ops instances.
8849 (struct breakpoint) <exact>: New field.
8850 (target_exact_watchpoints): Declare external global.
8851 * breakpoint.c (target_exact_watchpoints): New global flag.
8852 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8853 b->enable_state to bp_enabled before calling
8854 hw_watchpoint_used_count.
8855 (hw_watchpoint_used_count): Iterate over all bp_locations in a
8856 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
8857 if available.
8858 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8859 if the watchpoint is exact.
8860 (resources_needed_watchpoint): New function.
8861 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8862 (watch_command_1): Set b->exact if the user asked for an exact
8863 watchpoint and one can be set.
8864 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8865 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8866 the user asks for an exact watchpoint and one can be set. Return
8867 number of needed debug registers to watch the expression.
8868 * gdbtypes.c (is_scalar_type): New function, based on
8869 valprint.c:scalar_type_p.
8870 (is_scalar_type_recursive): New function.
8871 * gdbtypes.h (is_scalar_type_recursive): Declare.
8872 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8873 handle regions when ranged watchpoints are available.
8874 (create_watchpoint_request): New function.
8875 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8876 create_watchpoint_request.
8877 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8878 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8879 `set powerpc' and `show powerpc' commands.
8880 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8881 Mention documentation comment in the target macro.
8882 (target_region_ok_for_hw_watchpoint): Document return value.
8883
8884 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8885
8886 * breakpoint.c (update_watchpoint): Decide on using a software or
8887 hardware watchpoint after the bp_locations are created.
8888
8889 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8890
8891 Convert hardware watchpoints to use breakpoint_ops.
8892 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8893 <insert_location>: ... this. Return int instead of void.
8894 Accept pointer to struct bp_location instead of pointer to
8895 struct breakpoint. Adapt all implementations.
8896 (breakpoint_ops) <remove>: Rename to...
8897 <remove_location>: ... this. Accept pointer to struct bp_location
8898 instead of pointer to struct breakpoint. Adapt all implementations.
8899 * breakpoint.c (insert_catchpoint): Delete function.
8900 (insert_bp_location): Call the watchpoint or catchpoint's
8901 breakpoint_ops.insert method.
8902 (remove_breakpoint_1): Call the watchpoint or catchpoint's
8903 breakpoint_ops.remove method.
8904 (insert_watchpoint, remove_watchpoint): New functions.
8905 (watchpoint_breakpoint_ops): New structure.
8906 (watch_command_1): Initialize the OPS field.
8907 * inf-child.c (inf_child_insert_fork_catchpoint)
8908 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8909 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8910 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8911 Delete functions.
8912 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8913 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8914 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8915 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8916 * target.c (update_current_target): Change default implementation of
8917 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8918 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8919 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8920 to_set_syscall_catchpoint to return_one.
8921 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8922 (debug_to_insert_exec_catchpoint): Report return value.
8923 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8924 (to_insert_exec_catchpoint): Change declaration to return int instead
8925 of void.
8926
8927 2011-01-11 Michael Snyder <msnyder@vmware.com>
8928
8929 * arm-tdep.c: Internationalization.
8930 * c-lang.c: Ditto.
8931 * charset.c: Ditto.
8932 * fork-child.c: Ditto.
8933 * nto-procfs.c: Ditto.
8934 * ppc-sysv-tdep.c: Ditto.
8935 * procfs.c: Ditto.
8936 * remote-mips.c: Ditto.
8937 * remote.c: Ditto.
8938 * rs6000-nat.c: Ditto.
8939 * rs6000-tdep.c: Ditto.
8940 * target.c: Ditto.
8941 * valops.c: Ditto.
8942 * value.c: Ditto.
8943 * xml-support.c: Ditto.
8944 * mi/mi-cmd-break.c: Ditto.
8945 * mi/mi-cmd-var.c: Ditto.
8946 * mi/mi-interp.c: Ditto.
8947 * mi/mi-main.c: Ditto.
8948
8949 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
8950
8951 * remote-sim.c (gdbsim_store_register): Update API to
8952 sim_store_register to check more error conditions.
8953
8954 2011-01-10 Michael Snyder <msnyder@vmware.com>
8955
8956 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8957 * nto-tdep.c: Ditto.
8958 * nto-tdep.h: Ditto.
8959 * objc-exp.y: Ditto.
8960 * objc-lang.c: Ditto.
8961 * objfiles.c: Ditto.
8962 * objfiles.h: Ditto.
8963 * observer.c: Ditto.
8964 * opencl-lang.c: Ditto.
8965 * osabi.c: Ditto.
8966 * parse.c: Ditto.
8967 * parser-defs.h: Ditto.
8968 * p-exp.y: Ditto.
8969 * p-lang.c: Ditto.
8970 * posix-hdep.c: Ditto.
8971 * ppcbug-rom.c: Ditto.
8972 * ppc-linux-nat.c: Ditto.
8973 * ppc-linux-tdep.c: Ditto.
8974 * ppc-linux-tdep.h: Ditto.
8975 * ppcnbsd-tdep.c: Ditto.
8976 * ppcobsd-tdep.c: Ditto.
8977 * ppcobsd-tdep.h: Ditto.
8978 * ppc-sysv-tdep.c: Ditto.
8979 * ppc-tdep.h: Ditto.
8980 * printcmd.c: Ditto.
8981 * proc-abi.c: Ditto.
8982 * proc-flags.c: Ditto.
8983 * procfs.c: Ditto.
8984 * proc-utils.h: Ditto.
8985 * progspace.h: Ditto.
8986 * prologue-value.c: Ditto.
8987 * prologue-value.h: Ditto.
8988 * psympriv.h: Ditto.
8989 * psymtab.c: Ditto.
8990 * p-typeprint.c: Ditto.
8991 * p-valprint.c: Ditto.
8992 * ravenscar-sparc-thread.c: Ditto.
8993 * ravenscar-thread.c: Ditto.
8994 * ravenscar-thread.h: Ditto.
8995 * record.c: Ditto.
8996 * regcache.c: Ditto.
8997 * regcache.h: Ditto.
8998 * remote.c: Ditto.
8999 * remote-fileio.c: Ditto.
9000 * remote-fileio.h: Ditto.
9001 * remote.h: Ditto.
9002 * remote-m32r-sdi.c: Ditto.
9003 * remote-mips.c: Ditto.
9004 * remote-sim.c: Ditto.
9005 * rs6000-aix-tdep.c: Ditto.
9006 * rs6000-nat.c: Ditto.
9007 * rs6000-tdep.c: Ditto.
9008
9009 2011-01-10 Michael Snyder <msnyder@vmware.com>
9010
9011 * charset.c (validate): Internationalization.
9012 * coffread.c (read_one_sym): Ditto.
9013 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
9014 * h8300-tdep.c (H8300_extract_return_value): Ditto.
9015 * inflow.c (new_tty): Ditto.
9016 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
9017 * m32c-tdep.c (m32c_return_value): Ditto.
9018 * mep-tdep.c (mep_store_return_value): Ditto.
9019 * score-tdep.c (score7_fetch_insn): Ditto.
9020 * ser-mingw.c (pipe_windows_open): Ditto.
9021 * sh64-tdep.c (sh64_extract_return_value): Ditto.
9022 * spu-tdep.c (spu_register_type): Ditto.
9023 * tracepoint.c (trace_find_command): Ditto.
9024 * valarith.c (value_pos): Ditto.
9025
9026 2011-01-10 Joel Brobecker <brobecker@adacore.com>
9027
9028 * ada-valprint.c (printstr): Minor comment reformatting.
9029
9030 2011-01-08 Michael Snyder <msnyder@vmware.com>
9031
9032 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
9033 markup.
9034
9035 2011-01-08 Michael Snyder <msnyder@vmware.com>
9036
9037 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
9038 * hppa-hpux-tdep.c: Ditto.
9039 * hppa-linux-nat.c: Ditto.
9040 * hppa-linux-tdep.c: Ditto.
9041 * hppanbsd-tdep.c: Ditto.
9042 * hppa-tdep.c: Ditto.
9043 * hppa-tdep.h: Ditto.
9044 * hpux-thread.c: Ditto.
9045 * i386-cygwin-tdep.c: Ditto.
9046 * i386-darwin-nat.c: Ditto.
9047 * i386gnu-nat.c: Ditto.
9048 * i386-linux-nat.c: Ditto.
9049 * i386-linux-tdep.c: Ditto.
9050 * i386-nat.c: Ditto.
9051 * i386-nat.h: Ditto.
9052 * i386nbsd-tdep.c: Ditto.
9053 * i386-sol2-nat.c: Ditto.
9054 * i386-stub.c: Ditto.
9055 * i386-tdep.c: Ditto.
9056 * i386-tdep.h: Ditto.
9057 * i387-tdep.c: Ditto.
9058 * ia64-linux-nat.c: Ditto.
9059 * ia64-linux-tdep.c: Ditto.
9060 * ia64-tdep.c: Ditto.
9061 * infcall.c: Ditto.
9062 * infcall.h: Ditto.
9063 * infcmd.c: Ditto.
9064 * inferior.c: Ditto.
9065 * inferior.h: Ditto.
9066 * infloop.c: Ditto.
9067 * inflow.c: Ditto.
9068 * infrun.c: Ditto.
9069 * interps.c: Ditto.
9070 * interps.h: Ditto.
9071 * iq2000-tdep.c: Ditto.
9072 * irix5-nat.c: Ditto.
9073 * jit.c: Ditto.
9074 * jit.h: Ditto.
9075 * jv-exp.y: Ditto.
9076 * jv-lang.c: Ditto.
9077 * jv-lang.h: Ditto.
9078 * jv-typeprint.c: Ditto.
9079 * jv-valprint.c: Ditto.
9080 * language.c: Ditto.
9081 * language.h: Ditto.
9082 * linespec.c: Ditto.
9083 * linux-fork.c: Ditto.
9084 * linux-nat.c: Ditto.
9085 * linux-thread-db.c: Ditto.
9086 * lm32-tdep.c: Ditto.
9087
9088 2011-01-08 Michael Snyder <msnyder@vmware.com>
9089
9090 * m2-exp.y: Comment cleanup, mostly periods and spaces.
9091 * m2-lang.c: Ditto.
9092 * m2-typeprint.c: Ditto.
9093 * m2-valprint.c: Ditto.
9094 * m32c-tdep.c: Ditto.
9095 * m32r-linux-nat.c: Ditto.
9096 * m32r-rom.c: Ditto.
9097 * m32r-tdep.c: Ditto.
9098 * m32r-tdep.h: Ditto.
9099 * m68hc11-tdep.c: Ditto.
9100 * m58klinux-nat.c: Ditto.
9101 * m68k-tdep.c: Ditto.
9102 * m88k-tdep.c: Ditto.
9103 * m88k-tdep.h: Ditto.
9104 * machoread.c: Ditto.
9105 * macrocmd.c: Ditto.
9106 * macroexp.c: Ditto.
9107 * macrotab.c: Ditto.
9108 * main.c: Ditto.
9109 * maint.c: Ditto.
9110 * mdebugread.c: Ditto.
9111 * mdebugread.h: Ditto.
9112 * memattr.c: Ditto.
9113 * memattr.h: Ditto.
9114 * memory-map.h: Ditto.
9115 * mep-tdep.c: Ditto.
9116 * microblaze-rom.c: Ditto.
9117 * microblaze-tdep.c: Ditto.
9118 * minsyms.c: Ditto.
9119 * mips-irix-tdep.c: Ditto.
9120 * mips-linux-nat.c: Ditto.
9121 * mips-linux-tdep.c: Ditto.
9122 * mips-linux-tdep.h: Ditto.
9123 * mipsnbsd-nat.c: Ditto.
9124 * mipsnbsd-tdep.c: Ditto.
9125 * mipsread.c: Ditto.
9126 * mips-tdep.c: Ditto.
9127 * mips-tdep.h: Ditto.
9128 * mn10300-linux-tdep.c: Ditto.
9129 * mn10300-tdep.c: Ditto.
9130 * mn10300-tdep.h: Ditto.
9131 * monitor.c: Ditto.
9132 * monitor.h: Ditto.
9133 * moxie-tdep.c: Ditto.
9134 * moxie-tdep.h: Ditto.
9135 * mt-tdep.c: Ditto.
9136
9137 2011-01-08 Mike Frysinger <vapier@gentoo.org>
9138
9139 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
9140
9141 2011-01-08 Robert Millan <rmh@gnu.org>
9142
9143 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
9144
9145 2011-01-07 Michael Snyder <msnyder@vmware.com>
9146
9147 * charset.c (_initialize_charset): Fix typo in string.
9148
9149 2011-01-07 Michael Snyder <msnyder@vmware.com>
9150
9151 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
9152 for i18n.
9153 * tui/tui-layout.c (tui_set_layout_for_display_command):
9154 Split line so that operator goes to beginning of line.
9155 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
9156 assignment out of if statement.
9157
9158 2011-01-07 Michael Snyder <msnyder@vmware.com>
9159
9160 * ada-lang.c: Comment cleanup, mostly periods and spaces.
9161 * ada-lang.h: Ditto.
9162 * ada-tasks.c: Ditto.
9163 * ada-valprint.c: Ditto.
9164 * aix-threads.c: Ditto.
9165 * alpha-linux-nat.c: Ditto.
9166 * alpha-linux-tdep.c: Ditto.
9167 * alpha-mdebug-tdep.c: Ditto.
9168 * alpha-nat.c: Ditto.
9169 * alpha-osf1-tdep.c: Ditto.
9170 * alpha-tdep.c: Ditto.
9171 * alphabsd-nat.c: Ditto.
9172 * alphabsd-tdep.c: Ditto.
9173 * amd64-darwin-tdep.c: Ditto.
9174 * amd64-linux-nat.c: Ditto.
9175 * amd64-linux-tdep.c: Ditto.
9176 * amd64-sol2-tdep.c: Ditto.
9177 * amd64-tdep.c: Ditto.
9178 * amd64-fbsd-tdep.c: Ditto.
9179 * amd64-nbsd-tdep.c: Ditto.
9180 * amd64-obsd-tdep.c: Ditto.
9181 * amd64-linux-nat.c: Ditto.
9182 * amd64-linux-tdep.c: Ditto.
9183 * arm-tdep.c: Ditto.
9184 * arm-tdep.h: Ditto.
9185 * armnbsd-nat.c: Ditto.
9186 * avr-tdep.c: Ditto.
9187 * bfin-tdep.c: Ditto.
9188 * bsd-kvm.c: Ditto.
9189 * c-typeprintc: Ditto.
9190 * c-valprint.c: Ditto.
9191 * coff-pe-read.h: Ditto.
9192 * coffreead.c: Ditto.
9193 * cris-tdep.c: Ditto.
9194 * d-lang.c: Ditto.
9195 * darwin-nat-info.c: Ditto.
9196 * darwin-nat.c: Ditto.
9197 * dbug-rom.c: Ditto.
9198 * dbxread.c: Ditto.
9199 * dcache.c: Ditto.
9200 * dcache.h: Ditto.
9201 * dec-thread.c: Ditto.
9202 * defs.h: Ditto.
9203 * demangle.c: Ditto.
9204 * dicos-tdep.c: Ditto.
9205 * dictionary.c: Ditto.
9206 * dictionary.h: Ditto.
9207 * dink32-rom.c: Ditto.
9208 * disasm.c: Ditto.
9209 * doublest.c: Ditto.
9210 * dsrec.c: Ditto.
9211 * dummy-frame.c: Ditto.
9212 * dwarf2-frame.c: Ditto.
9213 * dwarf2expr.c: Ditto.
9214 * dwarf2loc.c: Ditto.
9215 * dwarf2read.c: Ditto.
9216 * elfread.c: Ditto.
9217 * environ.c: Ditto.
9218 * eval.c: Ditto.
9219 * event-top.h: Ditto.
9220 * exceptions.c: Ditto.
9221 * exceptions.h: Ditto.
9222 * exec.c: Ditto.
9223 * expprint.c: Ditto.
9224 * expression.h: Ditto.
9225 * f-exp.y: Ditto.
9226 * f-lang.c: Ditto.
9227 * f-lang.h: Ditto.
9228 * f-typeprint.c: Ditto.
9229 * f-valprint.c: Ditto.
9230 * fbsd-nat.c: Ditto.
9231 * findvar.c: Ditto.
9232 * fork-child.c: Ditto.
9233 * frame.c: Ditto.
9234 * frame.h: Ditto.
9235 * frv-linux-tdep.c: Ditto.
9236 * frv-tdep.c: Ditto.
9237 * gcore.c: Ditto.
9238 * gdb-stabs.h: Ditto.
9239 * gdb_assert.h: Ditto.
9240 * gdb_string.h: Ditto.
9241 * gdb_thread_db.h: Ditto.
9242 * gdb_wait.h: Ditto.
9243 * gdbarch.sh: Ditto.
9244 * gdbcore.h: Ditto.
9245 * gdbthread.h: Ditto.
9246 * gdbtypes.c: Ditto.
9247 * gdbtypes.h: Ditto.
9248 * gnu-nat.c: Ditto.
9249 * gnu-nat.h: Ditto.
9250 * gnu-v2-abi.c: Ditto.
9251 * gnu-v3-abi.c: Ditto.
9252 * go32-nat.c: Ditto.
9253 * gdbarch.c: Regenerate.
9254 * gdbarch.h: Regenerate.
9255
9256 2011-01-07 Michael Snyder <msnyder@vmware.com>
9257
9258 * ax-gdb.c: Adjust some long output strings.
9259 * breakpoint.c: Ditto.
9260 * charset.c: Ditto.
9261 * cp-abi.c: Ditto.
9262 * infcall.c: Ditto.
9263 * infrun.c: Ditto.
9264 * linux-nat.c: Ditto.
9265 * solib-pa64.c: Ditto.
9266 * solib-som.c: Ditto.
9267
9268 2011-01-06 Tom Tromey <tromey@redhat.com>
9269
9270 PR python/12367:
9271 * NEWS: Add item.
9272 * python/python.c (GdbMethods): Add "newest_frame" method.
9273 * python/python-internal.h (gdbpy_newest_frame): Declare.
9274 * python/py-frame.c (gdbpy_newest_frame): New function.
9275
9276 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
9277
9278 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
9279 * jit.c (jit_debug): New variable.
9280 (show_jit_debug): New function.
9281 (struct target_buffer): Use ULONGEST.
9282 (bfd_open_from_target_memory): Likewise.
9283 (jit_register_code, jit_inferior_init): Add debug output.
9284 (_initialize_jit): Register "debug jit" command.
9285
9286 2011-01-06 Tom Tromey <tromey@redhat.com>
9287
9288 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
9289 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
9290 and ARCH_FRAME.
9291
9292 2011-01-06 Tom Tromey <tromey@redhat.com>
9293
9294 * python/py-frame.c (frapy_block): Use get_frame_block.
9295
9296 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9297
9298 Do not stop on SIGPRIO signals by default
9299 * infrun.c (_initialize_infrun): Unset signal_stop and
9300 signal_print for TARGET_SIGNAL_PRIO.
9301
9302 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9303
9304 * ada-tasks.c: Fix style violation in comment.
9305
9306 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9307
9308 * linespec.c (decode_compound, find_method): Remove trailing \n
9309 at end of error string.
9310 * solib-irix.c (irix_current_sos): Likewise.
9311 * varobj.c (uninstall_variable): Likewise.
9312
9313 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9314
9315 * copyright.py: New script.
9316 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
9317 Launch emacs without exec'ing. Call copyright.py afterwards.
9318
9319 2011-01-05 Michael Snyder <msnyder@vmware.com>
9320
9321 * addrmap.c: Shorten lines of >= 80 columns.
9322 * arch-utils.c: Ditto.
9323 * arch-utils.h: Ditto.
9324 * ax-gdb.c: Ditto.
9325 * ax-general.c: Ditto.
9326 * bcache.c: Ditto.
9327 * blockframe.c: Ditto.
9328 * breakpoint.c: Ditto.
9329 * buildsym.c: Ditto.
9330 * c-lang.c: Ditto.
9331 * c-typeprint.c: Ditto.
9332 * charset.c: Ditto.
9333 * coffread.c: Ditto.
9334 * command.h: Ditto.
9335 * corelow.c: Ditto.
9336 * cp-abi.c: Ditto.
9337 * cp-namespace.c: Ditto.
9338 * cp-support.c: Ditto.
9339 * dbug-rom.c: Ditto.
9340 * dbxread.c: Ditto.
9341 * defs.h: Ditto.
9342 * dfp.c: Ditto.
9343 * dfp.h: Ditto.
9344 * dictionary.c: Ditto.
9345 * disasm.c: Ditto.
9346 * doublest.c: Ditto.
9347 * dwarf2-frame.c: Ditto.
9348 * dwarf2expr.c: Ditto.
9349 * dwarf2loc.c: Ditto.
9350 * dwarf2read.c: Ditto.
9351 * elfread.c: Ditto.
9352 * eval.c: Ditto.
9353 * event-loop.c: Ditto.
9354 * event-loop.h: Ditto.
9355 * exceptions.h: Ditto.
9356 * exec.c: Ditto.
9357 * expprint.c: Ditto.
9358 * expression.h: Ditto.
9359 * f-lang.c: Ditto.
9360 * f-valprint.c: Ditto.
9361 * findcmd.c: Ditto.
9362 * frame-base.c: Ditto.
9363 * frame-unwind.c: Ditto.
9364 * frame-unwind.h: Ditto.
9365 * frame.c: Ditto.
9366 * frame.h: Ditto.
9367 * gcore.c: Ditto.
9368 * gdb-stabs.h: Ditto.
9369 * gdb_assert.h: Ditto.
9370 * gdb_dirent.h: Ditto.
9371 * gdb_obstack.h: Ditto.
9372 * gdbcore.h: Ditto.
9373 * gdbtypes.c: Ditto.
9374 * gdbtypes.h: Ditto.
9375 * inf-ttrace.c: Ditto.
9376 * infcall.c: Ditto.
9377 * infcmd.c: Ditto.
9378 * inflow.c: Ditto.
9379 * infrun.c: Ditto.
9380 * inline-frame.h: Ditto.
9381 * language.c: Ditto.
9382 * language.h: Ditto.
9383 * libunwind-frame.c: Ditto.
9384 * libunwind-frame.h: Ditto.
9385 * linespec.c: Ditto.
9386 * linux-nat.c: Ditto.
9387 * linux-nat.h: Ditto.
9388 * linux-thread-db.c: Ditto.
9389 * machoread.c: Ditto.
9390 * macroexp.c: Ditto.
9391 * macrotab.c: Ditto.
9392 * main.c: Ditto.
9393 * maint.c: Ditto.
9394 * mdebugread.c: Ditto.
9395 * memattr.c: Ditto.
9396 * minsyms.c: Ditto.
9397 * monitor.c: Ditto.
9398 * monitor.h: Ditto.
9399 * objfiles.c: Ditto.
9400 * objfiles.h: Ditto.
9401 * osabi.c: Ditto.
9402 * p-typeprint.c: Ditto.
9403 * p-valprint.c: Ditto.
9404 * parse.c: Ditto.
9405 * printcmd.c: Ditto.
9406 * proc-events.c: Ditto.
9407 * procfs.c: Ditto.
9408 * progspace.c: Ditto.
9409 * progspace.h: Ditto.
9410 * psympriv.h: Ditto.
9411 * psymtab.c: Ditto.
9412 * record.c: Ditto.
9413 * regcache.c: Ditto.
9414 * regcache.h: Ditto.
9415 * remote-fileio.c: Ditto.
9416 * remote.c: Ditto.
9417 * ser-mingw.c: Ditto.
9418 * ser-tcp.c: Ditto.
9419 * ser-unix.c: Ditto.
9420 * serial.c: Ditto.
9421 * serial.h: Ditto.
9422 * solib-frv.c: Ditto.
9423 * solib-irix.c: Ditto.
9424 * solib-osf.c: Ditto.
9425 * solib-pa64.c: Ditto.
9426 * solib-som.c: Ditto.
9427 * solib-sunos.c: Ditto.
9428 * solib-svr4.c: Ditto.
9429 * solib-target.c: Ditto.
9430 * solib.c: Ditto.
9431 * somread.c: Ditto.
9432 * source.c: Ditto.
9433 * stabsread.c: Ditto.
9434 * stabsread.c: Ditto.
9435 * stack.c: Ditto.
9436 * stack.h: Ditto.
9437 * symfile-mem.c: Ditto.
9438 * symfile.c: Ditto.
9439 * symfile.h: Ditto.
9440 * symmisc.c: Ditto.
9441 * symtab.c: Ditto.
9442 * symtab.h: Ditto.
9443 * target-descriptions.c: Ditto.
9444 * target-memory.c: Ditto.
9445 * target.c: Ditto.
9446 * target.h: Ditto.
9447 * terminal.h: Ditto.
9448 * thread.c: Ditto.
9449 * top.c: Ditto.
9450 * tracepoint.c: Ditto.
9451 * tracepoint.h: Ditto.
9452 * ui-file.c: Ditto.
9453 * ui-file.h: Ditto.
9454 * ui-out.h: Ditto.
9455 * user-regs.c: Ditto.
9456 * user-regs.h: Ditto.
9457 * utils.c: Ditto.
9458 * valarith.c: Ditto.
9459 * valops.c: Ditto.
9460 * valprint.c: Ditto.
9461 * valprint.h: Ditto.
9462 * value.c: Ditto.
9463 * varobj.c: Ditto.
9464 * varobj.h: Ditto.
9465 * vec.h: Ditto.
9466 * xcoffread.c: Ditto.
9467 * xcoffsolib.c: Ditto.
9468 * xcoffsolib.h: Ditto.
9469 * xml-syscall.c: Ditto.
9470 * xml-tdesc.c: Ditto.
9471
9472 2011-01-05 Michael Snyder <msnyder@vmware.com>
9473
9474 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
9475 * cli/cli-decode.c: Ditto.
9476 * cli/cli-dump.c: Ditto.
9477 * cli/cli-logging.c: Ditto.
9478 * cli/cli-script.c: Ditto.
9479 * cli/cli-setshow.c: Ditto.
9480 * common/signals.c: Ditto.
9481 * mi/mi-cmd-break.c: Ditto.
9482 * mi/mi-cmd-disas.c: Ditto.
9483 * mi/mi-cmd-stack.c: Ditto.
9484 * mi/mi-cmd-var.c: Ditto.
9485 * mi/mi-cmds.c: Ditto.
9486 * mi/mi-common.h: Ditto.
9487 * mi/mi-console.c: Ditto.
9488 * mi/mi-interp.c: Ditto.
9489 * mi/mi-main.c: Ditto.
9490 * osf-share/cma_attr.c: Ditto.
9491 * osf-share/cma_deb_core.h: Ditto.
9492 * osf-share/cma_debug_client.h: Ditto.
9493 * osf-share/cma_handle.h: Ditto.
9494 * osf-share/cma_mutex.h: Ditto.
9495 * osf-share/cma_stack_int.h: Ditto.
9496 * osf-share/cma_tcb_defs.h: Ditto.
9497 * python/py-auto-load.c: Ditto.
9498 * python/py-breakpoint.c: Ditto.
9499 * python/py-cmd.c: Ditto.
9500 * python/py-frame.c: Ditto.
9501 * python/py-objfile.c: Ditto.
9502 * python/py-param.c: Ditto.
9503 * python/py-progspace.c: Ditto.
9504 * python/py-symbol.c: Ditto.
9505 * python/py-value.c: Ditto.
9506 * python/python-internal.h: Ditto.
9507 * python/python.c: Ditto.
9508 * tui/tui-data.c: Ditto.
9509 * tui/tui-disasm.c: Ditto.
9510 * tui/tui-hooks.c: Ditto.
9511 * tui/tui-io.c: Ditto.
9512 * tui/tui-layout.c: Ditto.
9513 * tui/tui-regs.c: Ditto.
9514 * tui/tui-source.c: Ditto.
9515 * tui/tui-stack.c: Ditto.
9516 * tui/tui-win.c: Ditto.
9517 * tui/tui-windata.c: Ditto.
9518 * tui/tui-winsource.c: Ditto.
9519
9520 2011-01-05 Joel Brobecker <brobecker@adacore.com>
9521
9522 * configure.ac, gdb.1: Copyright year update.
9523
9524 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9525
9526 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
9527 this_pc_in_block, morestack_msym and morestack_name. Check for
9528 "__morestack" minimal symbol there.
9529
9530 2011-01-03 Joel Brobecker <brobecker@adacore.com>
9531
9532 * symfile.c (find_sym_fns): Add call to dont_repeat.
9533
9534 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9535
9536 Copyright year update in most files (performed by copyright.sh).
9537
9538 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9539
9540 * top.c (print_gdb_version): Update copyright year in version output.
9541
9542 For older changes see ChangeLog-2010.
9543 \f
9544 Local Variables:
9545 mode: change-log
9546 left-margin: 8
9547 fill-column: 74
9548 version-control: never
9549 coding: utf-8
9550 End:
This page took 0.251467 seconds and 4 git commands to generate.