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