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