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