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