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