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