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