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