gdb/doc/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
559a7a62
JK
12011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 Case insensitive lookups implementation.
4 * dwarf2read.c: Include ctype.h.
5 (struct mapped_index): New field version.
6 (mapped_index_string_hash): New parameter index_version. New comment
7 for it. Call tolower appropriately.
8 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
9 Choose the right index version for mapped_index_string_hash.
10 (dwarf2_read_index): Support also the index version 5. Initialize the
11 new struct mapped_index field version.
12 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
13 (find_slot): Explain the version needs. Pass INT_MAX for the new
14 parameter.
15 (write_psymtabs_to_index): Produce version 5.
16 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
17 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
18 * psymtab.c (lookup_partial_symbol): Find the
19 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
20 entries.
21 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
22 NAME lowercasing.
23 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
24 (completion_list_add_name): New variable ncmp, initialize it, use it.
25 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
26 * utils.c (strcmp_iw): Support case_sensitive_off.
27 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
28 New function comment part. New variables saved_string1,
29 saved_string2 and case_pass. Add a proper second pass.
30
681bf369
JK
312011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
32
33 Replace re_comp/re_exec by regcomp/regexec.
34 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
35 (search_symbols_name_matches): Use them, use regexec.
36 (search_symbols): New variable retval_chain, adjust the use of
37 old_chain against it. Replace re_comp by regcomp. Use the new struct
38 search_symbols_data fields, use regexec instead of re_exec.
39
b11b1f88
JK
402011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
41
42 Format the code for the next patch.
43 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
44 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
45 New variables c1 and c2.
46
2484c66b
UW
472011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
48
49 * infrun.c (proceed): Do not single-step into signal delivery
50 when stepping off a breakpoint location.
51 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
52 (insert_step_resume_breakpoint_at_caller): Likewise.
53 (insert_step_resume_breakpoint_at_sal): Likewise.
54 (insert_longjmp_resume_breakpoint): Likewise.
55
47423772
YQ
562011-04-27 Yao Qi <yao@codesourcery.com>
57
58 * common/linux-ptrace.h: Remove include <sys/wait.h>.
59
13bdd2e7
JB
602011-04-27 Joel Brobecker <brobecker@adacore.com>
61
62 * procfs.c (procfs_pass_signals): Fix advance declaration.
63
2455069d
UW
642011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
65
66 * target.h (struct target_ops): Remove to_notice_signals;
67 add to_pass_signals.
68 (target_notice_signals): Remove.
69 (target_pass_signals): Add prototype.
70 * target.c (update_current_target): Remove to_notice_signals;
71 mention to_pass_signals.
72 (target_pass_signals): New function.
73 (debug_to_notice_signals): Remove.
74 (setup_target_debug): Do not install debug_to_notice_signals.
75
76 * infrun.c (signal_pass): New global.
77 (resume): Call target_pass_signals.
78 (handle_inferior_event): Report all signals while stepping over
79 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
80 are re-inserted when stepping over a signal handler.
81 (signal_cache_update): New function.
82 (signal_stop_update): Call it.
83 (signal_print_update): Likewise.
84 (signal_pass_update): Likewise.
85 (handle_command): Call signal_cache_update and target_pass_signals
86 instead of target_notice_signals.
87 (_initialize_infrun): Initialize signal_pass.
88
89 * linux-nat.c (pass_mask): New global.
90 (linux_nat_pass_signals): New function.
91 (linux_nat_create_inferior): Report all signals initially.
92 (linux_nat_attach): Likewise.
93 (linux_nat_resume): Use pass_mask to decide whether to directly
94 handle an inferior signal.
95 (linux_nat_wait_1): Likewise.
96 (linux_nat_add_target): Install to_pass_signals callback.
97
98 * nto-procfs.c (notice_signals): Remove.
99 (procfs_resume): Do not call notice_signals.
100 (procfs_notice_signals): Remove.
101 (procfs_pass_signals): New function.
102 (init_procfs_ops): Install to_pass_signals callback instead of
103 to_notice_signals callback.
104 (_initialize_procfs): Report all signals initially.
105
106 * procfs.c (procfs_notice_signals): Remove.
107 (procfs_pass_signals): New function.
108 (procfs_target): Install to_pass_signals callback instead of
109 to_notice_signals callback.
110 (register_gdb_signals): Remove.
111 (procfs_debug_inferior): Report all signals initially.
112 (procfs_init_inferior): Remove redundant register_gdb_signals call.
113
114 * remote.c (remote_pass_signals): Add numsigs and pass_signals
115 parameters; use them instead of calling signal_..._state routines.
116 (remote_notice_signals): Remove.
117 (remote_start_remote): Report all signals initially.
118 (remote_resume): Do not call remote_pass_signals.
119 (_initialize_remote): Install to_pass_signals callback instead of
120 to_notice_signals callback.
121
46c6471b
PA
1222011-04-27 Pedro Alves <pedro@codesourcery.com>
123
124 * breakpoint.c (user_settable_breakpoint): Delete.
125 (user_breakpoint_p): Remove check on user_settable_breakpoint.
126 (delete_command): Check user_breakpoint_p instead of looking at
127 the breakpoint's type.
128 (disable_command): Ditto.
129 (enable_command): Ditto.
130 (delete_trace_command): Use user_breakpoint_p instead of looking
131 at the breakpoint number directly. When checking if there are
132 user visible tracepoints, in order to know whether to ask the user
133 for confirmation, check whether the breakpoint is actually a
134 tracepoint.
135
f6d90398
VP
1362011-04-27 Vladimir Prus <vladimir@codesourcery.com>
137
138 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
139 compilation.
140
8d3788bd
VP
1412011-04-27 Vladimir Prus <vladimir@codesourcery.com>
142
143 MI breakpoint notifications.
144
145 * annotate.c (breakpoint_changed): Adjust parameter type.
146 * breakpoint.c (set_breakpoint_condition): Adjust to change
147 in breakpoint_modified type.
148 (breakpoint_set_commands): Likewise.
149 (do_map_commands_command): Likewise.
150 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
151 changed after bumping hit count.
152 (bpstat_stop_status): Likewise.
153 (print_one_breakpoint_location): Don't wrap in tuple here.
154 (print_one_breakpoint): Always print individual locations.
155 For locations, use unnamed tuple.
156 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
157 has changed.
158 (create_catchpoint, create_syscall_event_catchpoint): Call
159 breakpoint_created obsever.
160 (mention): Don't call breakpoint_created observer.
161 (create_breakpoint_sal): Call breakpoint_created observer.
162 (create_breakpoint, watch_command_1): Likewise.
163 (create_ada_exception_breakpoint): Likewise.
164 (delete_breakpoint): Call breakpoint_deleted breakpoint.
165 (locations_are_equal): New.
166 (update_breakpoint_locations): If locations were changed, notify.
167 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
168 Call breakpoint_modified observer.
169
170 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
171 (mi_cmd_break_insert): Don't set observers for modify and delete.
172 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
173 (mi_breakpoint_created, mi_breakpoint_deleted)
174 (mi_breakpoint_modified): New.
175 (mi_interpreter_init): Hook the above.
176 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
177 while -break-* commands are executing.
178 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
179 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
180 (mi_redirect): New.
181 (mi_ui_out_impl): Hook in mi_redirect.
182 (mi_field_skip): True to the name, skip the field, don't output
183 a field with an empty value.
184
185 * python/py-breakpoint.c (gdbpy_breakpoint_created)
186 (gdbpy_breakpoint_deleted): Adjust.
187 * tui/tui-hooks.c (tui_event_create_breakpoint)
188 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
189
a8f42b45
UW
1902011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
191
192 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
193 (procfs_remove_hw_watchpoint): Likewise.
194
57e12211
TT
1952011-04-26 Michael Walle <michael@walle.cc>
196
197 * remote.c (remote_start_remote): Ack packet after sending the
198 interrupt sequence.
199
af96c192
YQ
2002011-04-26 Yao Qi <yao@codesourcery.com>
201
202 * linux-nat.c: Move common macros to ...
203 Include linux-ptrace.h.
204 * common/linux-ptrace.h: ... here. New.
205
3e03848b
JK
2062011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
207
208 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
209 !objfile_has_partial_symbols. New comment.
210 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
211 SYM_READ_PSYMBOLS is not present. Extend the comment.
212 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
213
1ae0d051
JK
2142011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
215
216 * defs.h (ENUM_BITFIELD): Remove.
217
03f2bd59
JK
2182011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
219 Eli Zaretskii <eliz@gnu.org>
220
221 * NEWS: Document the new gdbserver --once option.
222
4161fbb0
JZ
2232011-04-21 Jie Zhang <jzhang918@gmail.com>
224
225 * MAINTAINERS: Update my email address.
226
bcb28afc
PM
2272011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
228
229 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
230 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
231 function call if __STDC_ISO_10646__ macro is defined.
232 (intermediate_encoding): New prototype.
233 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
234 to generate compile time error for unsupported gdb_wchar_t size.
235 (ENDIAN_SUFFIX): New macro.
236 (intermediate_encoding): New function.
237
7b08b9eb
JK
2382011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
239
240 * ada-lang.c (struct add_partial_datum): Update the comment for
241 expand_partial_symbol_name.
242 (ada_add_partial_symbol_completions): Rename to ...
243 (ada_expand_partial_symbol_name): ... here, change return type, update
244 function comment, call symbol_completion_match instead of
245 symbol_completion_add.
246 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
247 and ada_expand_partial_symbol_name.
248 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
249 FILE_MATCHER.
250 (dw2_map_symbol_names): Remove.
251 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
252 * psymtab.c (map_symbol_names_psymtab): Remove.
253 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
254 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
255 order.
256 (psym_functions): Unlist map_symbol_names_psymtab.
257 (map_partial_symbol_names): Rename to ...
258 (expand_partial_symbol_names): ... here, change the FUN type, call
259 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
260 * psymtab.h (map_partial_symbol_names): Rename to ...
261 (expand_partial_symbol_names): ... here, change the FUN type.
262 * symfile.h (struct quick_symbol_functions): Update the description of
263 expand_symtabs_matching. Remove map_symbol_names.
264 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
265 (struct add_name_data): Update the comment for
266 expand_partial_symbol_name.
267 (add_partial_symbol_name): Rename to ...
268 (expand_partial_symbol_name): ... here. Replace
269 completion_list_add_name call by strncmp.
270 (default_make_symbol_completion_list_break_on): Use now
271 expand_partial_symbol_names and expand_partial_symbol_name.
272 * symtab.h (enum search_domain): New element ALL_DOMAIN.
273
90476074
TT
2742011-04-20 Tom Tromey <tromey@redhat.com>
275
276 * dwarf2read.c (save_gdb_index_command): Replace format
277 documentation with a pointer to the manual.
278
c21236dc
PA
2792011-04-20 Pedro Alves <pedro@codesourcery.com>
280
281 * regcache.c: Include remote.h.
282 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
283 (regcache_dump): Handle regcache_dump_remote.
284 (maintenance_print_remote_registers): New function.
285 (_initialize_regcache): Install "maint print remote-registers"
286 command.
287 * remote.c (map_regcache_remote_table): New function, factored out
288 from ...
289 (init_remote_state): ... here.
290 (remote_register_number_and_offset): New.
291 * remote.h (remote_register_number_and_offset): Declare.
292
b78974c3
PA
2932011-04-20 Pedro Alves <pedro@codesourcery.com>
294
295 * regcache.c (get_thread_arch_regcache): If creating a regcache for
296 null_ptid, assume and allow a NULL address space, instead of
297 asking the target for the ptid's address space.
298 * infrun.c (ptid_is_pid): Remove assertion.
299
7a9dd1b2
TT
3002011-04-19 Tom Tromey <tromey@redhat.com>
301
302 * windows-tdep.c (windows_xfer_shared_library):
303 * windows-nat.c (get_module_name, windows_make_so):
304 * v850-tdep.c (v850_handle_pushm):
305 * utils.c (null_cleanup, gdb_realpath):
306 * ui-out.c (get_next_header):
307 * tracepoint.c (clear_traceframe_info):
308 * symtab.c (lookup_symtab):
309 * serial.h (struct serial_ops):
310 * mipsread.c (read_alphacoff_dynamic_symtab):
311 * infcmd.c (print_return_value):
312 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
313 * f-exp.y (parse_number):
314 * exceptions.c (catch_exceptions):
315 * dummy-frame.c (dummy_frame_this_id):
316 * defs.h (struct cleanup):
317 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
318 * arm-tdep.c (arm_push_dummy_call):
319 * amd64-tdep.h (amd64_collect_xsave):
320 * amd64-tdep.c (amd64_collect_xsave):
321 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
322 * README (typing): Remove duplicate words.
323 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
324 * infrun.c (siginfo_value_read): Fix typo.
325 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
326 * top.c (source_line_number): Add comma.
327
9941e0c5
MK
3282011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
329
330 * thread.c (any_live_thread_of_process): Prioritize threads
331 that are not executing.
332 * gdbthread.h (any_live_thread_of_process): Update comment
333 as per above change.
334
ed4b0e6a
AS
3352011-04-19 Andreas Schwab <schwab@linux-m68k.org>
336
337 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
338 (scan_xcoff_symtab): Likewise.
339
9b13a2db
PM
3402011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
341
342 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
343 inside if clause.
344
1c6e1b0d
PM
3452011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
346 Pedro Alves <pedro@codesourcery.com>
347
348 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
349 variables to simplify code and avoid == operator at end of
350 line as this is against GNU coding standards.
351
74de0234
PM
3522011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
353
354 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
355 lm_name to name_lm to avoid conflict with lm_name function.
356
b23518f0
PM
3572011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
358
359 ARI fixes: Use only lowercase function name for static functions.
360 * nto-tdep.c (LM_ADDR): Rename to...
361 (lm_addr): New function name.
362 (nto_relocate_section_addresses): Adapt to change above.
363 * solib-sunos.c (LM_ADDR): Rename to...
364 (lm_addr): New function name.
365 (LM_NEXT): Rename to...
366 (lm_next): New function name.
367 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
368 function name changes above.
369 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
370 (lm_addr_from_link_map): New function name.
371 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
372 (has_lm_dynamic_from_link_map): New function name.
373 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
374 (lm_dynamic_from_link_map): New function name.
375 (LM_ADDR_CHECK): Rename to...
376 (lm_addr_check): New function name.
377 (LM_NEXT): Rename to...
378 (lm_next): New function name.
379 (LM_PREV): Rename to...
380 (lm_prev): New function name.
381 (LM_NAME): Rename to...
382 (lm_name): New function name.
383 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
384 (ignore_first_link_map_entry): New function name.
385 (svr4_keep_data_in_core): Adapt to function name changes above.
386 (svr4_current_sos): Likewise.
387 (enable_break): Likewise.
388 (svr4_relocate_section_addresses): Likewise.
389
1448a0a2
PM
3902011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
391
392 ARI cleanup.
393 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
394 sprintf. Simplify code and avoid loosing memory.
395 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
396 (call0_frame_cache): Remove && operator from end of line.
397
02835898
JK
3982011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
399
400 Fix libraries displacement if they change whether they were prelinked.
401 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
402 does not match. Comment why.
403
9a845ea2
JK
4042011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
405
406 * corelow.c: Include wrapper.h.
407 (core_open): Call now gdb_target_find_new_threads.
408 * wrapper.c: Include target.h.
409 (gdb_target_find_new_threads): New.
410 * wrapper.h (gdb_target_find_new_threads): New declaration.
411
254f582e
JK
4122011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
413
414 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
415 even if !TARGET_HAS_EXECUTION.
416
63524580
JK
4172011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
418
419 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
420 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
421 bfd_get_synthetic_symtab.
422 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
423 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
424 parameter parent, remove the call to add_separate_debug_objfile.
425 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
426 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
427 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
428 parent, new comment for it, call add_separate_debug_objfile for it.
429 (symbol_file_add_separate): Pass objfile as the parameter parent,
430 remove the call to add_separate_debug_objfile.
431 (symbol_file_add_from_bfd): New parameter parent, pass it.
432 (symbol_file_add): Pass NULL to the new parameter parent.
433 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
434
90359a16
JK
4352011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
436
437 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
438 BSF_SYNTHETIC.
439
626e7282
JK
4402011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
441
442 Fix Python access to inlined frames.
443 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
444 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
445
cf31e6f9
TT
4462011-04-15 Tom Tromey <tromey@redhat.com>
447
448 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
449
c8d895f1
GB
4502011-04-15 Gary Benson <gbenson@redhat.com>
451
452 * MAINTAINERS: Add myself to write-after-approval section.
453
56a9aa1d
MF
4542011-04-14 Mike Frysinger <vapier@gentoo.org>
455
456 * remote-sim.c (sim_command_completer): New function.
457 (_initialize_remote_sim): Set completer to sim_command_completer.
458
ba770c9c
TJB
4592011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
460
461 * breakpoint.c (print_exception_catchpoint): Rename to ...
462 (print_it_exception_catchpoint): ... this.
463 (gnu_v3_exception_catchpoint_ops): Update with new name
464 for print_it_exception_catchpoint.
465
51bf2553
EBM
4662011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
467
468 * MAINTAINERS: Add myself for write after approval privileges.
469
d242658c
MP
4702011-04-13 Marek Polacek <mpolacek@redhat.com>
471
472 * MAINTAINERS: Add myself as a write-after-approval maintainer.
473
4a4106ca
TJB
4742011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
475
476 * breakpoint.c (watch_command_1): Remove colon from exp_string.
477
26063d49
TJB
4782011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
479
480 * breakpoint.c (save_breakpoints): Verify whether
481 breakpoint_ops.print_recreate is defined before calling it.
482
7782b183
GB
4832011-04-11 Gary Benson <gbenson@redhat.com>
484
485 Fix failure with --enable-maintainer-mode.
486 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
487
e8930875
JK
4882011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
489
490 Code cleanup.
491 * symtab.c (search_symbols): Reorder the KIND description in the
492 function comment. Remove the unused 4th element of types, types2,
493 types3 and types4. New gdb_assert on KIND.
494 (symtab_symbol_info): Remove the unused 4th element of classnames.
495 New gdb_assert on KIND.
496 * symtab.h (enum search_domain): New warning in the enum comment.
497 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
498 TYPES_DOMAIN.
499
b4f2f049
JK
5002011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
501
502 Fix crash of gdb save-index on a STABS file.
503 * dwarf2read.c (write_psymtabs_to_index): Return also on no
504 PSYMTABS_ADDRMAP.
505
60d5a603
JK
5062011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
507
508 Fix DW_AT_accessibility compatibility with gcc-4.6+.
509 * dwarf2read.c: Include ctype.h.
510 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
511 functions.
512 (dwarf2_add_field): Fix new_field->accessibility by calling
513 dwarf2_default_access_attribute. Restructure setting accessibility
514 vs. virtuality.
515 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
516 is_private and is_protected by calling
517 dwarf2_default_access_attribute.
518
e0f68161
KB
5192011-04-08 Kevin Buettner <kevinb@redhat.com>
520
521 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
522 to the initialization.
523
2e1aae43
SE
5242011-04-08 Steve Ellcey <sje@cup.hp.com>
525
526 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
527 initalization.
528
c6ca3dab
PM
5292011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
530
531 Remove support for old Cygwin 1.5 versions.
532 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
533 function on old Cygwin version.
534 * windows-nat.c: Remove cygwin version check and always define
535 __USEWIDE for Cygwin compilation.
536
bd18283a
YQ
5372011-04-07 Yao Qi <yao@codesourcery.com>
538
539 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
540 and TO.
541 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
542 (arm_copy_svc): Remove parameters INSN and TO.
543 (decode_svc_copro): Update caller.
544 * arm-tdep.h (struct displaced_step_closure): Remove parameters
545 from function pointer `copy_svc_os'.
546
8c8dba6d
YQ
5472011-04-07 Yao Qi <yao@codesourcery.com>
548
549 * arm-tdep.c (cleanup_branch): Set a correct return address in
550 LR for ARM and Thumb.
551
59d7bcaf
JK
5522011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
553
554 Code cleanup.
555 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
556 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
557 in the function comment, a new note on values compatibility.
558 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
559 * symtab.h (SYMBOL_HASH_NEXT): New.
560
e7db58ea
TJB
5612011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
562
563 * ppc-linux-nat.c (check_condition): Add len output parameter.
564 Set it based on the memory region referenced in the condition
565 expression. Update all callers.
566
9f743ef6
JK
5672011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
568
569 Fix crash regression on systems featuring .gdb_index.
570 * objfiles.c (free_objfile): Move the
571 forget_cached_source_info_for_objfile call earlier. Comment it.
572 Extend the comment for objfile_free_data.
573
9182c5bc
JK
5742011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
575
576 Fix regression of displaying the debug format.
577 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
578 subfile.
579
04bd08de
TT
5802011-04-04 Tom Tromey <tromey@redhat.com>
581
582 * cli/cli-interp.c (struct captured_execute_command_args):
583 Remove.
584 (do_captured_execute_command): Remove.
585 (safe_execute_command): Use TRY_CATCH.
586 * cli/cli-script.c (struct wrapped_read_command_file_args):
587 Remove.
588 (wrapped_read_command_file): Remove.
589 (script_from_file): Use TRY_CATCH.
590 * exceptions.c (catch_exception): Remove.
591 * exceptions.h (catch_exception): Remove.
592 (deprecated_throw_reason): Update comment.
593 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
594 argument to 'context'.
595 (mi_execute_command): Use TRY_CATCH.
596 * remote.c (struct start_remote_args): Remove.
597 (remote_start_remote): Update; change arguments.
598 (remote_open_1): Use TRY_CATCH.
599
58438ac1
TT
6002011-04-04 Tom Tromey <tromey@redhat.com>
601
602 * tracepoint.c (scope_info): Update.
603 * symtab.c (decode_line_spec): Update.
604 * python/python.c (gdbpy_decode_line): Update.
605 * linespec.h (decode_line_1): Update.
606 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
607 (decode_compound, find_method, symtab_from_filename)
608 (decode_variable): Likewise.
609 * cli/cli-cmds.c (edit_command): Update.
610 (list_command): Update.
611 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
612 argument.
613 (create_breakpoint): Update.
614 (until_break_command): Update.
615 (addr_string_to_sals): Update.
616 (decode_line_spec_1): Update.
617
b78a6381
TT
6182011-04-04 Tom Tromey <tromey@redhat.com>
619
620 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
621 (do_captured_parse_breakpoint): Remove.
622 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
623 Use TRY_CATCH directly.
624
00174a86
TT
6252011-04-04 Tom Tromey <tromey@redhat.com>
626
627 * symtab.h (free_symtab): Remove.
628 (forget_cached_source_info_for_objfile): Declare.
629 * symmisc.c (free_symtab): Remove.
630 * source.c (forget_cached_source_info_for_objfile): New function.
631 (forget_cached_source_info): Use it.
632 * objfiles.c (free_objfile): Simplify check before calling
633 clear_current_source_symtab_and_line. Call
634 forget_cached_source_info_for_objfile.
635
30cc903e
TT
6362011-04-04 Tom Tromey <tromey@redhat.com>
637
638 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
639 (new_symtab): Don't set `free_code' on symtab.
640 (new_linetable): Properly handle size==0.
641 * symtab.h (struct symtab) <free_code, free_func>: Remove.
642 * symmisc.c (free_symtab): Don't free the linetable. Don't call
643 free_func.
644 * jv-lang.c (struct jv_per_objfile_data): New.
645 (jv_per_objfile_free): Free the data.
646 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
647 (get_java_class_symtab): Set the `dict' field on the
648 jv_per_objfile_data.
649 (free_class_block): Remove.
650 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
651 the symtab.
652
0c2e6019
TT
6532011-04-04 Tom Tromey <tromey@redhat.com>
654
655 * symfile.c (reread_symbols): Update.
656 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
657 field.
658 * objfiles.c (allocate_objfile): Update.
659 * cp-support.h (cp_check_possible_namespace_symbols): Don't
660 declare.
661 * cp-namespace.c (lookup_symbol_file): Don't call
662 lookup_possible_namespace_symbol.
663 (initialize_namespace_symtab, get_possible_namespace_block)
664 (free_namespace_block, cp_check_possible_namespace_symbols)
665 (check_possible_namespace_symbols_loop)
666 (check_one_possible_namespace_symbol)
667 (lookup_possible_namespace_symbol): Remove.
668 (maintenance_cplus_namespace): Replace with notice.
669 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
670
554d387d
TT
6712011-04-04 Tom Tromey <tromey@redhat.com>
672
673 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
674 * symtab.h (struct symtab) <producer, debugformat>: Now const.
675 * symmisc.c (free_symtab): Don't free debugformat.
676 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
677 (record_debugformat, record_producer): Document.
678 * buildsym.c (end_symtab): Don't save debugformat and producer
679 names on obstack.
680 (end_symtab): Don't free debugformat and producer fields.
681 (record_debugformat): Don't call xstrdup.
682 (record_producer): Likewise.
683
d4d4db8a
TT
6842011-04-04 Tom Tromey <tromey@redhat.com>
685
686 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
687 (source_line_charpos, source_charpos_line): Remove.
688
8903c50d
TT
6892011-04-04 Tom Tromey <tromey@redhat.com>
690
691 * symtab.h (domain_enum): Split in two...
692 (enum search_domain): New.
693 (search_symbols): Update.
694 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
695 redundant declarations.
696 (search_symbols): Change 'kind' argument to search_domain.
697 Update.
698 (print_symbol_info): Likewise.
699 (symtab_symbol_info): Likewise.
700 * symfile.h (struct quick_symbol_functions)
701 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
702 <expand_symtabs_matching>: Likewise.
703 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
704 (expand_symtabs_matching_via_partial): Update.
705 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
706 (dw2_expand_symtabs_for_function): Update.
707 * block.h: Moved anonymous enum...
708 * defs.h (enum block_enum): ... here. Now named.
709
d9351f5f 7102011-04-03 Joel Brobecker <brobecker@adacore.com>
711
712 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
713 * version.in: Bump version to 7.3.50.20110403-cvs.
714
d6e00af6
JB
7152011-04-03 Joel Brobecker <brobecker@adacore.com>
716
717 * NEWS: Create a new section for the next release branch.
718 Rename the section of the current branch, now that it has
719 been cut.
720
2b9e5ea6
UW
7212011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
722
723 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
724 for "fpscr" in target description.
725
0cf03b49
JK
7262011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
727
728 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
729 initialize it. Delay HASH initialization. Strip the part after open
730 parenthesis for languages with qualifiers. Call do_cleanups.
731
5d901a73
TT
7322011-04-01 Tom Tromey <tromey@redhat.com>
733
734 * utils.c (report_command_stats): Don't print `-' for negative
735 number.
736
b0dd7688
JB
7372011-04-01 Eric Botcazou <ebotcazou@adacore.com>
738
739 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
740 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
741 typedefs.
742
956a9fb9
JB
7432011-04-01 Joel Brobecker <brobecker@adacore.com>
744
745 * breakpoint.h (bpdisp_text): Add declaration.
746 * breakpoint.c (bpdisp_text): Make non-static.
747 * ada-lang.c: #include "mi/mi-common.h".
748 (print_it_exception): Rewrite to improve GDB/MI output.
749
3352110b
PA
7502011-04-01 Pedro Alves <pedro@codesourcery.com>
751
752 * arm-tdep.h (struct address_space): Add forward declaration.
753
18819fa6
UW
7542011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
755
756 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
757 * arm-tdep.c (arm_override_mode): New global.
758 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
759 execution mode heuristics.
760 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
761 second single-step breakpoint if needed, using
762 arm_insert_single_step_breakpoint.
763 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
764 ARM execution mode, do not call thumb_get_next_pc_raw.
765 (arm_get_next_pc): Encode execution mode in return value. Call
766 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
767 (arm_insert_single_step_breakpoint): New function.
768 (arm_software_single_step): Call it.
769 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
770 argument to return execution mode of sigreturn target.
771 (arm_linux_syscall_next_pc): Use it.
772 (arm_linux_copy_svc): Update call.
773 (arm_linux_software_single_step): Call
774 arm_insert_single_step_breakpoint.
775
a6e293d1
JK
7762011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
777
778 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
779 the comment.
780
a4c8e806
TT
7812011-03-31 Tom Tromey <tromey@redhat.com>
782
783 * varobj.c (update_dynamic_varobj_children): Properly handle
784 errors from iterator.
785
df5c6c50
JK
7862011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
787
788 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
789 struct linkage name twice.
790
1dae3efc
TT
7912011-03-31 Tom Tromey <tromey@redhat.com>
792
793 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
794 missing ">" to message.
795
f4f7ab05
TT
7962011-03-31 Tom Tromey <tromey@redhat.com>
797
798 * varobj.c (instantiate_pretty_printer): Remove duplicate
799 'return'.
800
fcf250e2
UW
8012011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
802
803 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
804 if neither saved value nor register available (e.g. signal frame).
805
ee6436e3
TJB
8062011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
807
808 * macroexp.c (expand): Avoid uninitialized variable
809 compiler warning.
810
423f41a5
TJB
8112011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
812
813 * breakpoint.c (break_range_command): Fix typo in comment.
814
f1310107
TJB
8152011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
816 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
817
818 Implement support for PowerPC BookE ranged breakpoints.
819 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
820 * breakpoint.h (struct bp_target_info) <length>: New member
821 variable.
822 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
823 instead of struct breakpoint as argument, and also add ASPACE
824 and BP_ADDR arguments. Update all callers.
825 (struct breakpoint_ops) <print_one_detail>: New method.
826 (struct breakpoint) <addr_string_range_end>: New member variable.
827 * breakpoint.c (breakpoint_location_address_match): Add function
828 prototype.
829 (insert_bp_location): Set bl->target_info.length.
830 (breakpoint_here_p): Call breakpoint_location_address_match.
831 (moribund_breakpoint_here_p): Likewise.
832 (regular_breakpoint_inserted_here_p): Likewise.
833 (breakpoint_thread_match): Likewise.
834 (bpstat_stop_status): Likewise.
835 (bpstat_check_location): Move call to
836 breakpoint_ops.breakpoint_hit to the top.
837 (print_one_breakpoint_location): Call
838 breakpoint_ops.print_one_detail if available.
839 (breakpoint_address_match_range): New function.
840 (breakpoint_location_address_match): Likewise.
841 (breakpoint_locations_match): Compare the length field of the
842 locations too.
843 (hw_breakpoint_used_count): Count resources used by all locations
844 in a breakpoint, and use breakpoint_ops.resources_needed if
845 available.
846 (breakpoint_hit_ranged_breakpoint): New function.
847 (resources_needed_ranged_breakpoint): Likewise.
848 (print_it_ranged_breakpoint): Likewise.
849 (print_one_ranged_breakpoint): Likewise.
850 (print_one_detail_ranged_breakpoint): Likewise.
851 (print_mention_ranged_breakpoint): Likewise.
852 (print_recreate_ranged_breakpoint): Likewise.
853 (ranged_breakpoint_ops): New structure.
854 (find_breakpoint_range_end): New function.
855 (break_range_command): Likewise.
856 (delete_breakpoint): Free addr_string_range_end.
857 (update_breakpoint_locations): Add SALS_END argument. Update
858 all callers. Calculate breakpoint length if a non-zero SALS_END
859 is given. Call breakpoint_locations_match instead of
860 breakpoint_address_match.
861 (reset_breakpoint): Find SaL of the end of the range if B is a
862 ranged breakpoint.
863 (_initialize_breakpoint): Register break-range command.
864 * defs.h (print_core_address): Add function prototype.
865 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
866 function.
867 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
868 (ppc_linux_remove_hw_breakpoint): Likewise.
869 (_initialize_ppc_linux_nat): Initialize
870 to_ranged_break_num_registers.
871 * target.c (update_current_target): Add comment about
872 to_ranged_break_num_registers.
873 (target_ranged_break_num_registers): New function.
874 * target.h (struct target_ops) <to_ranged_break_num_registers>:
875 New method.
876 (target_ranged_break_num_registers): Add function prototype.
877 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
878 * utils.c (print_core_address): ... here.
879
02d20e4a
UW
8802011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
881
882 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
883 variable compiler warning.
884
ef23e705
TJB
8852011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
886
887 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
888 code from here ...
889 (re_set_breakpoint): ... to here ...
890 (addr_string_to_sals): ... and here.
891
311e6ab3
PM
8922011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
893
894 * Makefile.in (SFILES): Add missing C sources.
895 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
896 Add missing headers.
897
acd1d99c
MF
8982011-03-29 Mike Frysinger <vapier@gentoo.org>
899
900 * .gitignore: New file.
901
66ee2731
MF
9022011-03-29 Mike Frysinger <vapier@gentoo.org>
903
904 * NEWS: Mention new cfi device simulation.
905
53832f31
TT
9062011-03-29 Tom Tromey <tromey@redhat.com>
907
908 * dwarf2read.c (fixup_partial_die): Handle linkage name on
909 otherwise anonymous types.
910 (dwarf2_name): Likewise.
911 * valops.c (value_struct_elt_for_reference): Refine artificial
912 type logic. Call error if j==-1.
913
09b58708
JK
9142011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
915
916 Fix false GCC warning.
917 * infcall.c (find_function_addr): Initialize funaddr.
918
6023c606
PM
9192011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
920
921 Fix mingw compilation with --enable-targets=all.
922 * remote-mips.c (gdb_usleep.h): Include header.
923 (mips_enter_debug): Use gdb_usleep instead of sleep.
924
0e30163f
JK
9252011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
926
927 Support resolution of STT_GNU_IFUNC via breakpoints.
928 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
929 bp_gnu_ifunc_resolver_return.
930 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
931 the loop. Support bp_gnu_ifunc_resolver and
932 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
933 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
934 breakpoints.
935 (bptype_string, print_one_breakpoint_location): Support
936 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
937 (user_settable_breakpoint): Return true also for
938 bp_gnu_ifunc_resolver.
939 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
940 bp_gnu_ifunc_resolver_return.
941 (set_breakpoint_location_function): New parameter explicit_loc,
942 describe it. Call find_pc_partial_function_gnu_ifunc with new
943 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
944 EXPLICIT_LOC is not set.
945 (set_raw_breakpoint): Set EXPLICIT_LOC for
946 set_breakpoint_location_function.
947 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
948 set_breakpoint_location_function.
949 (mention): Support bp_gnu_ifunc_resolver and
950 bp_gnu_ifunc_resolver_return.
951 (add_location_to_breakpoint): Set EXPLICIT_LOC for
952 set_breakpoint_location_function.
953 (update_breakpoint_locations): Remove static.
954 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
955 bp_gnu_ifunc_resolver_return.
956 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
957 bp_gnu_ifunc_resolver_return.
958 (update_breakpoint_locations): New declaration.
959 * elfread.c: Include gdbthread.h and regcache.h.
960 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
961 functions.
962 (elf_gnu_ifunc_fns): Install them.
963 * minsyms.c (stub_gnu_ifunc_resolver_stop)
964 (stub_gnu_ifunc_resolver_return_stop): New functions.
965 (stub_gnu_ifunc_fns): Install them.
966 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
967 and gnu_ifunc_resolver_return_stop.
968 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
969
07be84bf
JK
9702011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
971
972 STT_GNU_IFUNC reader implementation.
973 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
974 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
975 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
976 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
977 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
978 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
979 (elf_gnu_ifunc_resolve_addr): New.
980 (elf_symfile_read): Call elf_rel_plt_read.
981 (elf_gnu_ifunc_fns): New.
982 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
983 Install elf_gnu_ifunc_fns.
984 * infcall.c (find_function_return_type): New function.
985 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
986 * minsyms.c (stub_gnu_ifunc_resolve_addr)
987 (stub_gnu_ifunc_resolve_name): New functions.
988 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
989 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
990 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
991
300f8e10
JK
9922011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
993
994 Code cleanup for later STT_GNU_IFUNC support.
995 * infcall.c (find_function_addr): Remove variable code, use explicit
996 dereferences for it. Move VALUE_TYPE initialization later.
997
11c81455
JK
9982011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
999
1000 GDB find_pc_partial_function support for STT_GNU_IFUNC.
1001 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1002 (clear_pc_function_cache): Clear it.
1003 (find_pc_partial_function): Rename to ...
1004 (find_pc_partial_function_gnu_ifunc): ... this function. New
1005 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
1006 (find_pc_partial_function): New wrapper for this function.
1007 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1008
0875794a
JK
10092011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1010
1011 GDB internal type support for STT_GNU_IFUNC.
1012 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
1013 (elf_symtab_read): Set mst_text_gnu_ifunc for
1014 BSF_GNU_INDIRECT_FUNCTION.
1015 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
1016 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
1017 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
1018 nodebug_got_plt_symbol.
1019 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
1020 (TYPE_GNU_IFUNC): New.
1021 (struct main_type): New field flag_gnu_ifunc.
1022 (struct builtin_type): New field builtin_func_func.
1023 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
1024 nodebug_got_plt_symbol.
1025 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
1026 (in_gnu_ifunc_stub): New.
1027 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
1028 mst_text_gnu_ifunc.
1029 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
1030 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
1031 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
1032 in_gnu_ifunc_stub.
1033 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
1034 * symtab.c (search_symbols): Likewise.
1035 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
1036 and mst_slot_got_plt.
1037 (in_gnu_ifunc_stub): New declaration.
1038
d0fb5eae
JK
10392011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1040
1041 Support a ring of related breakpoints.
1042 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
1043 other functions, add gdb_assert.
1044 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
1045 watchpoint_del_at_next_stop.
1046 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
1047 (bpstat_stop_status): Handle ring in related_breakpoint.
1048 (set_raw_breakpoint_without_location): Initialize ring in
1049 related_breakpoint.
1050 (delete_breakpoint): Handle ring in related_breakpoint, use
1051 watchpoint_del_at_next_stop.
1052 (map_breakpoint_numbers): Handle ring in related_breakpoint.
1053
9cded63f
TT
10542011-03-28 Tom Tromey <tromey@redhat.com>
1055
1056 PR symtab/12441:
1057 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
1058 with `language_minimal'.
1059
467d42c4
UW
10602011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
1061
1062 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
1063 instead of checking for STT_ARM_TFUNC symbol type.
1064
62853458
TT
10652011-03-25 Tom Tromey <tromey@redhat.com>
1066
1067 * linespec.c (symbol_found): Restore line-based result for
1068 non-LOC_LABEL symbols.
1069
a7417d46
KT
10702011-03-25 Kai Tietz <ktietz@redhat.com>
1071
1072 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
1073 instead of strcmp for comparison.
1074 (tui_source_is_displayed): Likewise.
1075 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
1076
55f1336d
TT
10772011-03-24 Mark Wielaard <mjw@redhat.com>
1078
1079 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
1080 complaint.
1081 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1082 (find_partial_die_in_comp_unit): Likewise in comment.
1083 (read_attribute_value): Likewise.
1084 (lookup_die_type): Likewise.
1085 (dwarf_form_name): Likewise.
1086 (dump_die_shallow): Likewise.
1087 (follow_die_ref_or_sig): Likewise.
1088
9ef07c8c
TT
10892011-03-24 Tom Tromey <tromey@redhat.com>
1090
1091 PR breakpoints/11816:
1092 * linespec.c (decode_line_1): Parse `function:label' linespecs.
1093 (decode_compound): Update.
1094 (find_function_symbol): New function.
1095 (decode_dollar): Update.
1096 (decode_label): Add 'function_symbol' parameter. Handle
1097 function-relative labels.
1098 (decode_variable): Update.
1099 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
1100 not its line. Set `special_display' and canonical name for
1101 labels.
1102
56435ebe
TT
11032011-03-24 Tom Tromey <tromey@redhat.com>
1104
1105 * linespec.h (struct linespec_result) <special_display>: New
1106 field.
1107 * breakpoint.h (struct breakpoint) <display_canonical>: New
1108 field.
1109 * breakpoint.c (print_breakpoint_location): Respect
1110 display_canonical.
1111 (create_breakpoint_sal): Add 'display_canonical' parameter.
1112 (create_breakpoints_sal): Update.
1113 (create_breakpoint): Update.
1114
7efd8fc2
TT
11152011-03-24 Tom Tromey <tromey@redhat.com>
1116
1117 * symtab.c (decode_line_spec): Update.
1118 * linespec.c (build_canonical_line_spec): Change type of
1119 'canonical'.
1120 (decode_line_2, decode_line_1, decode_objc, decode_compound)
1121 (find_method, decode_all_digits, decode_dollar, decode_label)
1122 (symbol_found): Likewise.
1123 (init_linespec_result): New function.
1124 * breakpoint.c (struct captured_parse_breakpoint_args)
1125 <canonical_p>: New field, replaces addr_string_p.
1126 (create_breakpoints_sal): Add 'canonical' parameter, replacing
1127 'addr_string'.
1128 (parse_breakpoint_sals): Likewise.
1129 (do_captured_parse_breakpoint): Update.
1130 (create_breakpoint): Use struct linespec_result.
1131 (until_break_command): Update.
1132 (breakpoint_re_set_one): Update.
1133 (decode_line_spec_1): Update.
1134 * linespec.h (struct linespec_result): New.
1135 (init_linespec_result): Declare.
1136
788c8b10
PA
11372011-03-23 Pedro Alves <pedro@codesourcery.com>
1138
1139 * regcache.c (regcache_raw_read): If the target didn't supply a
1140 given raw register, mark it as unavailable.
1141
0ba1096a
KT
11422011-03-23 Kai Tietz <ktietz@redhat.com>
1143
1144 * breakpoint.c (clear_command): Use filename_cmp
1145 instead of strcmp for comparison.
1146 * buildsym.c (watch_main_source_file_lossage): Likewise.
1147 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
1148 checking just for slash.
1149 * dbxread.c (read_dbx_symtab): Use lbasename instead of
1150 strrchr and filename_cmp instead of strcmp for filenames.
1151 (add_old_header_file): Use filename_cmp
1152 instead of strcmp for comparison.
1153 * exec.c (exec_set_section_address): Likewise.
1154 * macrotab.c (macro_lookup_inclusion): Likewise.
1155 (macro_lookup_inclusion): Likewise.
1156 * elfread.c (_initialize_elfread): Likewise.
1157 (elfstab_offset_sections): Likewise.
1158 (elfstab_offset_sections): Use lbasename instead of
1159 strrchr.
1160 * mdebugread.c (parse_partial_symbols): Likewise.
1161 (arse_partial_symbols): Use filename_(n)cmp instead of
1162 str(n)cmp for comparison.
1163 * minsyms.c (lookup_minimal_symbol): Likewise.
1164 * psymtab.c (read_psymtabs_with_filename): Likewise.
1165 * solib.c (solib_read_symbols): Likewise.
1166 (reload_shared_libraries_1): Likewise.
1167 * symmisc.c (maintenance_print_symbols): Likewise.
1168 * symfile.c (separate_debug_file_exists): Likewise.
1169 (reread_symbols): Likewise.
1170 (find_separate_debug_file_by_debuglink): Likewise.
1171 * remote-fileio.c (remote_fileio_func_rename): Likewise.
1172 * source.c (add_path): Likewise.
1173 * symtab.c (filename_seen): Likewise.
1174 (file_matches): Likewise.
1175 (print_symbol_info): Likewise.
1176 (maybe_add_partial_symtab_filename): Likewise.
1177 (make_source_files_completion_list): Likewise.
1178 * xml-syscall.c (init_sysinfo): Likewise.
1179 * windows-nat.c (_initialize_check_for_gdb_ini): Use
1180 IS_DIR_SEPARATOR for checking for trailing path separator.
1181
dd90784c
JK
11822011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1183
1184 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
1185 label abort_expression.
1186 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
1187 DWARF_VALUE_OPTIMIZED_OUT.
1188
3167638f
JK
11892011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1190
1191 Code cleanup.
1192 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
1193 to linkage_name. Invert its value. Update the function comment.
1194 (c_type_print_varspec_suffix): Invert it at the caller.
1195 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
1196
ce406537
PA
11972011-03-22 Pedro Alves <pedro@codesourcery.com>
1198
1199 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
1200 errors when reading the `stop_pc'.
1201 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
1202 get_frame_pc.
1203
da5d4055
PM
12042011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1205
1206 * NEWS: Document gdb.Write stream keyword.
1207
29e0eb9c
JK
12082011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1209
1210 Revert:
1211 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1212 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1213 (dwarf2_add_field): Fix new_field->accessibility for
1214 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1215
05775840
PM
12162011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1217
1218 PR python/12183
1219
1220 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
1221 other error classes. Do not print stack trace.
1222
a0cb7835
JK
12232011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1224
1225 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1226 (dwarf2_add_field): Fix new_field->accessibility for
1227 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1228
d19f7eee
UW
12292011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
1230
1231 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
1232 encountering a load via a non-SP register.
1233
4a2fbb50
UW
12342011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1235
1236 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
1237 field in returned unwinder.
1238
3489610d
JB
12392012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1240
1241 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
1242
8c1a34e7
JB
12432012-03-21 Joel Brobecker <brobecker@adacore.com>
1244
1245 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
1246 of xmalloc.
1247
8fbca658
PA
12482012-03-18 Pedro Alves <pedro@codesourcery.com>
1249
1250 * frame.c (frame_unwind_register): Throw an error if unwinding the
1251 register failed.
1252 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
1253 an unwind stop reason.
1254 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
1255 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
1256 UNWIND_UNAVAILABLE>: New.
1257 * inline-frame.c (inline_frame_unwind): Install
1258 default_frame_unwind_stop_reason.
1259 * frame-unwind.c: Include "exceptions.h".
1260 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
1261 (default_frame_unwind_stop_reason): New.
1262 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
1263 (default_frame_unwind_stop_reason): Declare.
1264 (struct frame_unwind) <stop_reason>: New function pointer.
1265
1266 * dummy-frame.c: Install default_frame_unwind_stop_reason.
1267 * dwarf2-frame.c: Include exceptions.h.
1268 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
1269 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
1270 computing the CFA. If such an error was thrown, set
1271 unavailable_retaddr.
1272 (dwarf2_frame_unwind_stop_reason): New.
1273 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
1274 unavailable.
1275 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
1276 (dwarf2_signal_frame_unwind): Ditto.
1277
1278 * amd64-tdep.c: Include "exceptions.h".
1279 (struct amd64_frame_cache): New field "base_p".
1280 (amd64_init_frame_cache): Clear it.
1281 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
1282 Avoid reading registers with functions that throw if the register
1283 is not necessary to compute the frame base.
1284 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1285 swallowing NOT_AVAILABLE_ERROR.
1286 (amd64_frame_unwind_stop_reason): New.
1287 (amd64_frame_this_id): Don't build a frame id if the frame base
1288 was unavailable.
1289 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
1290 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1291 base_p if the frame base was computable.
1292 (amd64_sigtramp_frame_unwind_stop_reason): New.
1293 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
1294 frame base was unavailable.
1295 (amd64_sigtramp_frame_unwind): Install
1296 amd64_sigtramp_frame_unwind_stop_reason.
1297 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1298 base_p if the frame base was computable.
1299 (amd64_epilogue_frame_unwind_stop_reason): New.
1300 (amd64_epilogue_frame_this_id): Don't build a frame id if the
1301 frame base was unavailable.
1302 (amd64_epilogue_frame_unwind): Install
1303 amd64_epilogue_frame_unwind_stop_reason.
1304 * i386-tdep.c: Include "exceptions.h".
1305 (struct i386_frame_cache): New field "base_p".
1306 (i386_init_frame_cache): Clear it.
1307 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
1308 Avoid reading registers with functions that throw if the register
1309 is not necessary to compute the frame base.
1310 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1311 swallowing NOT_AVAILABLE_ERROR.
1312 (i386_frame_unwind_stop_reason): New.
1313 (i386_frame_this_id): Don't build a frame id if the frame base was
1314 unavailable.
1315 (i386_frame_prev_register): Handle unavailable SP.
1316 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
1317 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1318 base_p if the frame base was computable.
1319 (i386_epilogue_frame_unwind_stop_reason): New.
1320 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
1321 base was unavailable.
1322 (i386_epilogue_frame_unwind): Install
1323 i386_epilogue_frame_unwind_stop_reason.
1324 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1325 base_p if the frame base was computable.
1326 (i386_sigtramp_frame_unwind_stop_reason): New.
1327 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
1328 base was unavailable.
1329 (i386_sigtramp_frame_unwind): Install
1330 i386_sigtramp_frame_unwind_stop_reason.
1331 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
1332 type's size, not the register's.
1333 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
1334
1335 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
1336 default_frame_unwind_stop_reason.
1337 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
1338 (alpha_heuristic_frame_unwind): Ditto.
1339 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
1340 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
1341 * avr-tdep.c (avr_frame_unwind): Ditto.
1342 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
1343 Ditto.
1344 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
1345 * frv-tdep.c (frv_frame_unwind): Ditto.
1346 * h8300-tdep.c (h8300_frame_unwind): Ditto.
1347 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
1348 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
1349 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
1350 (hppa_stub_frame_unwind): Ditto.
1351 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
1352 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
1353 (ia64_libunwind_frame_unwind)
1354 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
1355 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
1356 * lm32-tdep.c (lm32_frame_unwind): Ditto.
1357 * m32c-tdep.c (m32c_unwind): Ditto.
1358 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
1359 * m32r-tdep.c (m32r_frame_unwind): Ditto.
1360 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
1361 * m68k-tdep.c (m68k_frame_unwind): Ditto.
1362 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
1363 * m88k-tdep.c (m88k_frame_unwind): Ditto.
1364 * mep-tdep.c (mep_frame_unwind): Ditto.
1365 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
1366 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
1367 (mips_stub_frame_unwind): Ditto.
1368 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
1369 * moxie-tdep.c (moxie_frame_unwind): Ditto.
1370 * mt-tdep.c (mt_frame_unwind): Ditto.
1371 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
1372 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
1373 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
1374 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
1375 (s390_sigtramp_frame_unwind): Ditto.
1376 * score-tdep.c (score_prologue_unwind): Ditto.
1377 * sh-tdep.c (sh_frame_unwind): Ditto.
1378 * sh64-tdep.c (sh64_frame_unwind): Ditto.
1379 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
1380 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
1381 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
1382 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
1383 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
1384 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
1385 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
1386 (sparc64obsd_trapframe_unwind): Ditto.
1387 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
1388 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
1389 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
1390 * v850-tdep.c (v850_frame_unwind): Ditto.
1391 * vax-tdep.c (vax_frame_unwind): Ditto.
1392 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
1393 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
1394 * xtensa-tdep.c (xtensa_unwind): Ditto.
1395
f23d1b92
PA
13962011-03-18 Pedro Alves <pedro@codesourcery.com>
1397
1398 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
1399 there's always a frame. Use get_frame_pc_if_available instead of
1400 get_frame_pc, and if there's no PC available, don't look up a
1401 symtab.
1402
1d4f5741
PA
14032011-03-18 Pedro Alves <pedro@codesourcery.com>
1404
1405 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
1406 unavailable PC.
1407
dba09041
PA
14082011-03-18 Pedro Alves <pedro@codesourcery.com>
1409
1410 * tracepoint.c (set_traceframe_context): Handle unavailable PC
1411 gracefully.
1412
9a26e44c
PA
14132011-03-18 Pedro Alves <pedro@codesourcery.com>
1414
1415 * frame.h (frame_unwind_caller_pc_if_available): Declare.
1416 * frame.c (frame_unwind_caller_pc_if_available): New.
1417 * stack.c (frame_info): Handle unavailable PC.
1418
14192011-03-18 Pedro Alves <pedro@codesourcery.com>
1420
1421 * frame.c (frame_unwind_pc): Rename to ...
1422 (frame_unwind_pc_if_available): ... this. New `pc' output
1423 parameter. Change return type to int. Gracefully handle
1424 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
1425 happened, or 1 otherwise.
1426 (frame_unwind_pc): Reimplement on top of
1427 frame_unwind_pc_if_available.
1428 (get_frame_func): Rename to ...
1429 (get_frame_func_if_available): New `pc' output parameter. Change
1430 return type to int. Gracefully handle the PC not being available.
1431 (get_frame_func): Reimplement on top of
1432 get_frame_func_if_available.
1433 (select_frame): Handle the PC being unavailable.
1434 (get_prev_frame): Handle the PC being unavailable.
1435 (get_frame_pc_if_available): New.
1436 (get_frame_address_in_block_if_available): New.
1437 (find_frame_sal): Handle the frame PC not being available.
1438 * frame.h (get_frame_pc_if_available): Declare.
1439 (get_frame_address_in_block_if_available): Declare.
1440 (get_frame_func_if_available): Declare.
1441 * stack.c (print_frame_info): Handle the PC being unavailable.
1442 (find_frame_funname): Ditto.
1443 (print_frame): Handle the PC being unavailable.
1444 (get_frame_language): Ditto.
1445 * blockframe.c (get_frame_block): Ditto.
1446 * macroscope.c (default_macro_scope): Ditto.
1447 * tui/tui-stack.c (tui_show_frame_info): Ditto.
1448
14492011-03-18 Pedro Alves <pedro@codesourcery.com>
1450
1451 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
1452 NOT_AVAILABLE_ERROR when evaluating the location expression.
1453
14542011-03-18 Pedro Alves <pedro@codesourcery.com>
1455
1456 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
1457 returning that the register piece is unavailable/optimized out.
1458 (write_pieced_value): Handle get_frame_register_bytes returning
1459 that the register piece is unavailable/optimized out when doing a
1460 read-modify write of a bitfield.
1461 * findvar.c (value_from_register): Handle get_frame_register_bytes
1462 returning that the register piece is unavailable/optimized out.
1463 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
1464 and `unavailablep'. Throw error on bad debug info. Use
1465 frame_register instead of frame_register_read, to fill in the new
1466 arguments.
1467 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
1468 and `unavailablep'.
1469 * valops.c: (value_assign): Adjust, and handle
1470 get_frame_register_bytes failing.
1471 * spu-tdep.c: Include exceptions.h.
1472 (spu_software_single_step): Adjust, and handle
1473 get_frame_register_bytes failing.
1474 (spu_get_longjmp_target): Ditto.
1475 * gdbarch.sh (register_to_value): Change to return int. New
1476 parameters `optimizedp' and `unavailablep'.
1477 * gdbarch.h, gdbarch.c: Regenerate.
1478 * i386-tdep.c (i386_register_to_value): Adjust to new
1479 gdbarch_register_to_value interface.
1480 * i387-tdep.c (i387_register_to_value): Ditto.
1481 * i387-tdep.h (i387_register_to_value): Ditto.
1482 * alpha-tdep.c (alpha_register_to_value): Ditto.
1483 * ia64-tdep.c (ia64_register_to_value): Ditto.
1484 * m68k-tdep.c (m68k_register_to_value): Ditto.
1485 * mips-tdep.c (mips_register_to_value): Ditto.
1486 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
1487
0fdb4f18
PA
14882011-03-18 Pedro Alves <pedro@codesourcery.com>
1489
1490 * findvar.c (value_of_register): Mark the value as unavailable, if
1491 the register is unavailable.
1492 * frame.h (frame_register_unwind): New `unavailablep' parameter.
1493 (frame_register): New `unavailablep' parameter.
1494 (frame_register_read): Update comment.
1495 * frame.c (frame_register_unwind): New `unavailablep' parameter.
1496 Set it if the register is unavailable. If the register is
1497 unavailable, clear the output buffer.
1498 (frame_register): New `unavailablep' parameter. Pass it down.
1499 (frame_unwind_register): Adjust.
1500 (put_frame_register): Adjust.
1501 (frame_register_read): Adjust. Also return false if the register
1502 is not available.
1503 (frame_register_unwind_location): Adjust.
1504 * sentinel-frame.c (sentinel_frame_prev_register): If the register
1505 is unavailable, mark the value accordingly.
1506 * stack.c (frame_info): Handle unavailable registers.
1507
e69aa73e
PA
15082011-03-18 Pedro Alves <pedro@codesourcery.com>
1509
1510 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
1511 simplify, using regcache_cooked_read.
1512
05d1431c
PA
15132011-03-18 Pedro Alves <pedro@codesourcery.com>
1514
1515 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
1516 (regcache_raw_read_unsigned, regcache_raw_read_signed)
1517 (regcache_raw_read_unsigned, regcache_raw_read_part)
1518 (regcache_cooked_read, regcache_cooked_read_signed)
1519 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
1520 (regcache_cooked_read_ftype): Change return to enum
1521 register_status.
1522 * regcache.c: Include exceptions.h
1523 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
1524 (do_cooked_read): Change return to enum register_status. Always
1525 forward to regcache_cooked_read.
1526 (regcache_raw_read): Change return to enum register_status. If
1527 the register is not REG_VALID, memset the buffer. Return the
1528 register's status.
1529 (regcache_raw_read_signed): Handle non-REG_VALID registers and
1530 return the register's status.
1531 (regcache_raw_read_unsigned): Ditto.
1532 (regcache_cooked_read): Change return to enum register_status.
1533 Assert that with read-only regcaches, the register's status must
1534 be known. If the regcache is read-only, and the register is not
1535 REG_VALID, memset the buffer. Return the register's status.
1536 (regcache_cooked_read_signed): Change return to enum
1537 register_status. Handle non-REG_VALID registers and return the
1538 register's status.
1539 (regcache_cooked_read_unsigned): Change return to enum
1540 register_status. Handle non-REG_VALID registers and return the
1541 register's status.
1542 (regcache_xfer_part, regcache_raw_read_part)
1543 (regcache_cooked_read_part): Change return to enum
1544 register_status. Return the register's status.
1545 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
1546 unavailable.
1547 (regcache_dump): Handle unavailable cooked registers.
1548 * frame.c (do_frame_register_read): Adjust interface to match
1549 regcache_cooked_read_ftype.
1550 * gdbarch.sh (pseudo_register_read): Change return to enum
1551 register_status.
1552 * gdbarch.h, gdbarch.c: Regenerate.
1553
1554 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
1555 register_status.
1556 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
1557 register_status. If reading a raw register indicates the raw
1558 register is not valid, return the raw register's status,
1559 otherwise, return REG_VALID.
1560 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
1561 register_status. Handle non-REG_VALID raw registers and return
1562 the register's status.
1563 * arm-tdep.c (arm_neon_quad_read)
1564 (arm_pseudo_read): Change return to enum register_status. Handle
1565 non-REG_VALID raw registers and return the register's status.
1566 * avr-tdep.c (avr_pseudo_register_read): Ditto.
1567 * frv-tdep.c (frv_pseudo_register_read): Ditto.
1568 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
1569 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
1570 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
1571 register_status.
1572 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
1573 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
1574 (m32c_part_write, m32c_cat_read, m32c_cat_write)
1575 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
1576 (m32c_pseudo_register_read): Change return to enum
1577 register_status. Adjust.
1578 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
1579 enum register_status. Return the register's status.
1580 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
1581 register_status. Return the register's status.
1582 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
1583 * mips-tdep.c (mips_pseudo_register_read): Ditto.
1584 * mt-tdep.c (mt_pseudo_register_read): Ditto.
1585 * rs6000-tdep.c (move_ev_register_func): New typedef.
1586 (e500_move_ev_register): Use it. Change return to enum
1587 register_status. Return the register's status.
1588 (do_regcache_raw_read): New function.
1589 (do_regcache_raw_write): New function.
1590 (e500_pseudo_register_read): Change return to enum
1591 register_status. Return the register's status. Use
1592 do_regcache_raw_read.
1593 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
1594 (dfp_pseudo_register_read): Change return to enum register_status.
1595 Return the register's status.
1596 (vsx_pseudo_register_read): Ditto.
1597 (efpr_pseudo_register_read): Ditto.
1598 (rs6000_pseudo_register_read): Ditto.
1599 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
1600 register_status. Return the register's status.
1601 * sh64-tdep.c (pseudo_register_read_portions): New function.
1602 (sh64_pseudo_register_read): Change return to enum
1603 register_status. Use pseudo_register_read_portions. Return the
1604 register's status.
1605 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
1606 register_status. Return the register's status.
1607 * sh-tdep.c (pseudo_register_read_portions): New function.
1608 (sh_pseudo_register_read): Change return to enum register_status.
1609 Use pseudo_register_read_portions. Return the register's status.
1610 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
1611 enum register_status. Return the register's status.
1612 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
1613 * spu-tdep.c (spu_pseudo_register_read_spu)
1614 (spu_pseudo_register_read): Ditto.
1615 * xtensa-tdep.c (xtensa_register_read_masked)
1616 (xtensa_pseudo_register_read): Ditto.
1617 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
1618
e10abd8f
PM
16192011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1620
1621 * python/py-value.c (valpy_getitem): Fix formatting of error function
1622 call.
1623
7ea6d463
PM
16242011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1625
1626 ARI fixes: Add missing internationalization markups throughout
1627 C source files.
1628 * darwin-nat-info.c: Ditto.
1629 * record.c: Ditto.
1630 * remote.c: Ditto.
1631 * mi/mi-main.c: Ditto.
1632
001083c6
PM
16332011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1634
1635 ARI fixes: Add missing internationalization markups throughout
1636 yacc files.
1637 * c-exp.y: Ditto.
1638 * cp-name-parser.y: Ditto.
1639 * f-exp.y: Ditto.
1640 * m2-exp.y: Ditto.
1641 * objc-exp.y: Ditto.
1642 * p-exp.y: Ditto.
1643
4f1cdeec
PM
16442011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1645
1646 ARI fixes: Messages should have no trailing new lines.
1647 * darwin-nat.c (mach_check_error): Remove trailing new line from
1648 warning function call message.
1649 * record.c (bfdcore_read): Idem for error call.
1650
28e698f1
PM
16512011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1652
1653 * common/signals.c (target_signal_from_host): Add _ markup to error
1654 function call message.
1655 (target_signal_to_host): Add _ markup and remove trailing new line
1656 from warning call message.
1657 (target_signal_from_command): Add _ markup to error function call
1658 message.
1659
99c3dc11
PM
16602011-03-18 Phil Muldoon <pmuldoon@redhat.com>
1661
1662 PR python/12149
1663
1664 * python/python.c (gdbpy_write): Accept a stream argument and
1665 operate to the appropriate stream.
1666 (gdbpy_flush): Likewise.
1667 (_initialize_python): Add stream constants.
1668 (finish_python_initialization): Add GdbOutputErrorFile class.
1669
c20800be
KY
16702011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1671
1672 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1673
f4a1794a
KY
16742011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1675
1676 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
1677 to store_signed_integer. Add debug message when relocating CALL
1678 instructions. Fix formatting of debug message.
1679 * i386-tdep.c (i386_relocate_instruction): Ditto.
1680
d4862372
JB
16812011-03-17 Joel Brobecker <brobecker@gnat.com>
1682
1683 * target.h (struct target_ops): Remove to_lookup_symbol field.
1684 (target_lookup_symbol): Delete macro.
1685 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
1686 (update_current_target, setup_target_debug): Remove handling
1687 of to_lookup_symbol target_ops field.
1688 * ada-tasks.c (get_known_tasks_addr): Remove use of
1689 target_lookup_symbol.
1690 * coffread.c (coff_symtab_read): Likewise.
1691 * dbxread.c (read_dbx_symtab): Ditto.
1692
d645e32e
JB
16932011-03-17 Joel Brobecker <brobecker@gnat.com>
1694
1695 PR gdb/12116:
1696 * configure.ac: Add getthrds declaration check.
1697 * configure, config.in: Regenerate.
1698 * aix-thread.c (getthrds): Declare only if not already declared
1699 in procinfo.h. More declaration out of get_signaled_thread to
1700 global scope.
1701
29703da4
PM
17022011-03-17 Phil Muldoon <pmuldoon@redhat.com>
1703
1704 * python/py-symtab.c: Populate symtab_object_methods,
1705 sal_object_methods.
1706 (stpy_is_valid): New function.
1707 (salpy_is_valid): Ditto.
1708 * python/py-symbol.c: Declare symbol_object_methods. Populate.
1709 (sympy_is_valid): New function.
1710 * python/py-objfile.c: Declare objfile_object_methods. Populate.
1711 (objfpy_is_valid): New function.
1712 * python/py-inferior.c: Populate inferior_object_methods.
1713 (infpy_is_valid): New function.
1714 * python/py-infthread.c: Populate thread_object_methods.
1715 (thpy_is_valid): New function.
1716 * python/py-block.c: Declare block_object_methods. Populate. Declare
1717 block_iterator_object_methods. Populate.
1718 (blpy_is_valid): New function.
1719 (blpy_iter_is_valid): Ditto.
1720
c00f8484
KS
17212011-03-16 Keith Seitz <keiths@redhat.com>
1722
1723 * linespec.c (find_methods): Canonicalize NAME before looking
1724 up the symbol.
1725 (name_end): New function.
1726 (keep_name_info): New function.
1727 (decode_line_1): Use keep_name_info.
1728 (decode_compound): Likewise.
1729 * cli/cli-utils.h (remove_trailing_whitespace): New function.
1730 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
1731
1732 PR c++/12273
1733 * linespec.c (locate_first_half): Keep overload information, too.
1734 (decode_compound): Use a string to represent break characters
1735 to escape the loop.
1736 If P points to a break character, do not increment it.
1737 For C++ and Java, keep overload information and relevant keywords.
1738 If we cannot find a symbol, search the minimal symbols.
1739
1740 PR c++/11734
1741 * linespec.c (decode_compound): Rename SAVED_ARG to
1742 THE_REAL_SAVED_ARG.
1743 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
1744 single-quotes.
1745 Pass a valid block to lookup_symbol.
1746 (lookup_prefix_sym): Likewise.
1747 (find_method): Construct search name based on SYM_CLASS instead
1748 of SAVED_ARG.
1749 * psymtab.c (lookup_partial_symbol): Add language parameter.
1750 (lookup_symbol_aux_psymtabs): Likewise.
1751 Don't assume that the psymtab we found was the right one. Search
1752 for the desired symbol in the symtab to be certain.
1753 (psymtab_search_name): New function.
1754 (lookup_partial_symbol): Use psymtab_search_name.
1755 Add language parameter.
1756 (read_symtabs_for_function): Add language parameter and pass to
1757 lookup_partial_symbol.
1758 (find_symbol_file_from_partial): Likewise.
1759
c91513d8
PP
17602011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
1761
1762 PR gdb/12528
1763 * dwarf2read.c (noop_record_line): New function.
1764 (dwarf_decode_lines): Ignore line tables for GCd functions.
1765
b37520b6
PM
17662011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
1767
1768 Fix ARI warnings about new lines at the end of messages, which
1769 are unneeded as there is a new line added at the end of the message
1770 automatically.
1771 * darwin-nat.c (darwin_stop_inferior): Ditto.
1772 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
1773 * dfp.c (decimal_to_number): Ditto.
1774 * exec.c (print_section_info): Ditto.
1775 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
1776 * osdata.c (get_osdata): Ditto.
1777 * record.c (bfdcore_write): Ditto.
1778 * remote-mips.c (mips_readchar): Ditto.
1779 * remote.c (read_ptid): Ditto.
1780 * ser-mingw.c (ser_windows_raw): Ditto.
1781 * tracepoint.c (add_local_symbols): Ditto.
1782 * windows-nat.c (fake_create_process): Ditto.
1783
b08ee6a2
TT
17842011-03-16 Tom Tromey <tromey@redhat.com>
1785
1786 * tracepoint.c (stop_tracing): Don't declare.
1787 * event-top.c (after_char_processing_hook): Add `(void)'.
1788
9a6f1302
PM
17892011-03-16 Phil Muldoon <pmuldoon@redhat.com>
1790
1791 * NEWS: Add Parameter sub-classing description.
1792
7ceb86b1
KT
17932011-03-16 Kai Tietz <ktietz@redhat.com>
1794
1795 * MAINTAINERS: Update my e-mail address.
1796
efeff6cf
AT
17972011-03-15 Andreas Tobler <andreast@fgznet.ch>
1798
1799 * MAINTAINERS: Add myself for write after approval privileges.
1800
681c238c
MS
18012011-03-15 Michael Snyder <msnyder@vmware.com>
1802
f3df5b08
MS
1803 * frame.c (find_frame_sal): Assert sym is not null.
1804
13f6513c
MS
1805 * dbxread.c (process_one_symbol): Assert 'name' is not null.
1806
50412521
MS
1807 * objc-lang.c (selectors_info): Check strchr for null result.
1808
681c238c
MS
1809 * stabsread.c (define_symbol): Guard against bad stabstring input.
1810
6ced1581
PM
18112011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1812
1813 Remove trailing spaces and tabulations from pascal language
1814 support sources.
1815 p-exp.y: Ditto.
1816 p-lang.c: Ditto.
1817 p-lang.h: Ditto.
1818 p-valprint.c: Ditto.
1819
9373cf26
JK
18202011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1821
1822 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
1823 than LOW. Comment it.
1824 (read_partial_die): Call complaint for inappropriate zero LOWPC or
1825 HIGHPC not strictly higher than LOWPC.
1826
9a1edae6
PM
18272011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1828
1829 Fix formatting of function declarations returning a pointer in
1830 previous commit.
1831 * varobj.c (varobj_add_child): Ditto.
1832 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
1833 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
1834
24e9cda0
UW
18352011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
1836
1837 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
1838 for the "generic" vector ABI used with GCC 4.3 and later.
1839 (ppc64_sysv_abi_return_value): Likewise.
1840
18412011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
1842
1843 * infcall.c (call_function_by_hand): Function return value is
1844 always a non_lval, even when using struct_return.
1845
c9174737
PA
18462011-03-15 Pedro Alves <pedro@codesourcery.com>
1847
1848 * printcmd.c (ALL_DISPLAYS_SAFE): New.
1849 (map_display_numbers): New.
1850 (do_delete_display): New.
1851 (undisplay_command): Use map_display_numbers.
1852 (do_enable_disable_display): New.
1853 (enable_disable_display_command): New function.
1854 (enable_display): Delete.
1855 (enable_display_command): New.
1856 (disable_display_command): Reimplement.
1857 (_initialize_printcmd): Adjust "enable display" command to use
1858 `enable_display_command' as callback.
1859
350c6c65
PM
18602011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1861
1862 * NEWS: Add Python breakpoint 'stop' operation.
1863
824446ad
PM
18642011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1865
1866 * NEWS: Delete duplicate entry. Fix typo.
1867
2021ad3a
PM
18682011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1869
1870 Fix ARI warning about function names in first column.
1871 Put prototype declaration on same line as return type.
1872 * objc-exp.y: Ditto.
1873 * p-exp.y: Ditto.
1874 * python/py-stopevent.h: Ditto.
1875 For long function names, split parameters to
1876 allow function name on same line as return type.
1877 * solib-pa64.c: Ditto.
1878 * varobj.c: Ditto.
1879 * varobj.h: Ditto.
1880 For long function declaration, use single line.
1881 * hppa-tdep.h: Ditto.
1882 * inferior.h: Ditto.
1883
7371cf6d
PM
18842011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1885
1886 * python/python.h: Declare gdbpy_should_stop and
1887 gdbpy_breakpoint_has_py_cond.
1888 * python/python.c: Add python.h to includes. Remove python.h from
1889 HAVE_PYTHON definition
1890 (gdbpy_should_stop): New dummy function.
1891 (gdbpy_breakpoint_has_py_cond): New dummy function.
1892 * python/py-breakpoint.c (bppy_init): Rewrite to allow
1893 sub-classing capabilities.
1894 (gdbpy_should_stop): New function.
1895 (gdbpy_breakpoint_has_py_cond): New function.
1896 (local_setattro): New function.
1897 * breakpoint.c (condition_command): Add check for Python 'stop'
1898 operation.
1899 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
1900 operation function as part of stop/continue tests.
1901
37b50a69
TT
19022011-03-14 Tom Tromey <tromey@redhat.com>
1903
1904 PR gdb/12576:
1905 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
1906 (needs_frame_dwarf_call): Likewise.
1907
eeae04df
PM
19082011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1909
1910 Fix ARI warning about functions without parameters that do not
1911 use (void).
1912 * breakpoint.c (all_tracepoints): Replace () by (void).
1913 * f-exp.y (match_string_literal): Ditto.
1914 (yylex): Ditto.
1915 * m2-exp.y (yylex): Ditto.
1916 * mep-tdep.c (current_me_module): Ditto.
1917 (current_options): Ditto.
1918 (current_cop_data_bus_width): Ditto.
1919 (current_cr_names): Ditto.
1920 (current_cr_is_float): Ditto.
1921 (current_ccr_names): Ditto.
1922 * objc-exp.y (yylex): Ditto.
1923 * p-exp.y (yylex): Ditto.
1924 * remote.c (send_interrupt_sequence): Ditto.
1925 * tracepoint.c (current_trace_status): Ditto.
1926 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
1927 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
1928
6dc3565d
MS
19292011-03-11 Michael Snyder <msnyder@vmware.com>
1930
1427fe5e
MS
1931 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
1932 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
1933 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
1934 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
1935 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
1936
60bc018f
MS
1937 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
1938 (delete_async_event_handler): Ditto.
1939
f3be5b64
MS
1940 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
1941
4c2d5724
MS
1942 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
1943
6dc3565d
MS
1944 * top.c (set_verbose): Assert showcmd was found.
1945
4e6ca6d5
MG
19462011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
1947
1948 * xtensa-tdep.c (warning_once): Correct style issues.
1949
815a83e4
YQ
19502011-03-11 Yao Qi <yao@codesourcery.com>
1951
1952 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
1953
f2eb0bc8
AS
19542011-03-11 Andreas Schwab <schwab@redhat.com>
1955
1956 * common/aclocal.m4: Remove.
1957
b801de47
MG
19582011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1959
1960 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
1961 (xtensa_write_register, xtensa_read_register): Likewise.
1962 (xtensa_hextochar): Removed.
1963 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
1964
dbab50de
MG
19652011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1966
1967 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 1968 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
1969 (xtensa_alloc_frame_cache): Add initialization for new fields.
1970 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
1971 (warning_once): New function.
1972 (xtensa_insn_kind): New item c0opc_and.
1973 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
1974 (call0_track_op): Change arguments. New local variable litbase.
1975 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
1976 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
1977 in the prologue.
dbab50de 1978 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 1979 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
1980 Add the variety of updates to handle extended prologues, which now can
1981 conduct dynamic stack adjustments.
1982 (call0_frame_cache): Likewise.
1983 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
1984 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
1985
b2c04452
MS
19862011-03-10 Michael Snyder <msnyder@vmware.com>
1987
f8f67713
MS
1988 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
1989 (cmd_qtframe): Ditto.
1990 (cmd_qtbuffer): Ditto.
1991 (cmd_bigqtbuffer): Ditto.
1992
197f0a60
TT
19932011-03-10 Tom Tromey <tromey@redhat.com>
1994
1995 * tracepoint.c (trace_actions_command): Update.
1996 * thread.c (thread_apply_command): Update.
1997 * reverse.c (delete_bookmark_command): Update.
1998 (bookmarks_info): Update.
1999 * printcmd.c (undisplay_command): Update.
2000 * memattr.c (mem_enable_command): Update.
2001 (mem_disable_command): Update.
2002 (mem_delete_command): Update.
2003 * inferior.c (detach_inferior_command): Update.
2004 (kill_inferior_command): Update.
2005 (remove_inferior_command): Update.
2006 * cli/cli-utils.h (struct get_number_or_range_state): New.
2007 (init_number_or_range): Declare.
2008 (get_number_or_range): Update.
2009 * cli/cli-utils.c (init_number_or_range): New function.
2010 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
2011 static variables.
2012 (number_is_in_list): Update.
2013 * breakpoint.h (get_tracepoint_by_number): Update.
2014 * breakpoint.c (map_breakpoint_numbers): Update for change to
2015 get_number_or_range.
2016 (find_location_by_number): Use get_number, not
2017 get_number_or_range.
2018 (trace_pass_set_count): New function.
2019 (trace_pass_command): Update for change to get_number_or_range.
2020 Rework loop logic.
2021 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
2022 'state' parameter.
2023
ecec24e6
PM
20242011-03-10 Phil Muldoon <pmuldoon@redhat.com>
2025
2026 * python/py-param.c (add_setshow_generic): Add set/show callback
2027 parameters. Register Python object context.
2028 (get_show_value): New function.
2029 (get_set_value): New function.
2030 (call_doc_function): New function.
2031 (get_doc_string): Move behind get_show_value/get_set_value.
2032
6d6c6b1f
JK
20332011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
2034
2035 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
2036
68d6df83
MG
20372011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
2038
dbab50de 2039 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
2040 (xtensa_write_register): Likewise.
2041 (xtensa_hextochar): Add comment and update to match coding conventions.
2042 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
2043 (execute_l32e, execute_s32e, execute_code): Update comments.
2044 (xtensa_exception_handler_t): Update to match coding conventions.
2045 (xtensa_insn_kind): Likewise.
2046
85c9d6a6
MS
20472011-03-09 Michael Snyder <msnyder@vmware.com>
2048
2049 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
2050
91495617
PA
20512011-03-09 Pedro Alves <pedro@codesourcery.com>
2052
2053 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
2054
eb8c0621
TT
20552011-03-09 Tom Tromey <tromey@redhat.com>
2056
2057 * thread.c (restore_selected_frame): Handle frame_level == -1.
2058 (make_cleanup_restore_current_thread): Use
2059 get_selected_frame_if_set.
2060 * frame.h (get_selected_frame_if_set): Declare.
2061 * frame.c (get_selected_frame_if_set): New function.
2062
9f37bbcc
PA
20632011-03-09 Pedro Alves <pedro@codesourcery.com>
2064
2065 * cli/cli-cmds.c (shell_escape): Use lbasename.
2066 * coffread.c (coff_start_symtab): Constify parameter.
2067 (complete_symtab): Constify `name' parameter.
2068 (coff_symtab_read): Constify `filestring' local.
2069 (coff_getfilename): Constify return and `result' local.
2070 Use lbasename.
2071 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
2072 * linux-fork.c (info_checkpoints_command): Use lbasename.
2073 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
2074 * minsyms.c (lookup_minimal_symbol): Use lbasename.
2075 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
2076 * procfs.c (procfs_make_note_section): Use lbasename.
2077 * tui/tui-io.c (printable_part): Constity return and parameter.
2078 Use lbasename.
2079 (print_filename): Constify parameters, and local `s'.
2080 (tui_rl_display_match_list): Constify local `temp'.
2081
f8de3c55
JK
20822011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2083
2084 Revert:
2085 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2086 Fix DWARF-3+ DW_AT_accessibility default assumption.
2087 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2088 cu->header.version >= 3.
2089
d9837b00
YQ
20902011-03-09 Yao Qi <yao@codesourcery.com>
2091
2092 * common/Makefile.in: Remove.
2093 * common/configure: Remove.
2094 * common/configure.ac: Remove.
2095
e637a4f5
YQ
20962011-03-09 Yao Qi <yao@codesourcery.com>
2097
2098 Revert:
2099 2011-02-11 Yao Qi <yao@codesourcery.com>
2100
2101 * common/Makefile.in: Add copyright header.
2102
2103 2011-02-11 Yao Qi <yao@codesourcery.com>
2104
2105 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2106 libcommon.a.
2107 * configure.ac: Add common to sub dir.
2108 * configure: Regenerate.
2109
f976a05d
MG
21102011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2111
2112 * xtensa-tdep.c (call0_ret): New function.
2113 (xtensa_skip_prologue): Speed up analysis.
2114
57041825
MG
21152011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2116
2117 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
2118 while executing MI command -data-list-changed-registers.
2119
08b9c608
MG
21202011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2121
2122 * xtensa-tdep.c (xtensa_read_register): New function.
2123 (xtensa_write_register): New function.
2124 (xtensa_find_register_by_name): New function.
2125 (xtensa_windowed_frame_cache): Update comments in type description.
2126 (xtensa_frame_cache): Likewise.
2127 (xtensa_window_interrupt_insn): New function.
2128 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
2129 (xtensa_insn_kind): Add new instructions.
2130 (rwx_special_register): New function.
2131 (call0_classify_opcode): Add new instructions to the analysis.
2132 (a0_saved, a7_saved, a11_saved): New variables.
2133 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
2134 (execute_l32e): New function.
2135 (execute_s32e): New function.
2136 (xtensa_exception_handler_t): New type.
2137 (execute_code): New function.
2138 (xtensa_window_interrupt_frame_cache): New function to conduct frame
2139 analysis for Xtensa Window Exception handlers.
2140
4d1acb11
MG
21412011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2142
98689b25
MG
2143 * xtensa-tdep.c (TX_PS): New.
2144 (windowing_enabled): Update to count for Call0 ABI.
2145 (xtensa_hextochar): New.
2146 (xtensa_init_reggroups): Make algorithm generic.
2147 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
2148
21492011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2150
2151 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 2152
d3f323f3
MS
21532011-03-08 Michael Snyder <msnyder@vmware.com>
2154
3dcabaa8
MS
2155 * i386-tdep.c (i386_follow_jump): Check return value of
2156 target_read_memory.
2157 (i386_analyze_struct_return): Ditto.
2158 (i386_skip_probe): Ditto.
2159 (i386_match_insn): Ditto.
2160 (i386_skip_noop): Ditto.
2161 (i386_analyze_frame_setup): Ditto.
2162 (i386_analyze_register_saves): Ditto.
2163 (i386_skip_prologue): Ditto.
2164 (i386_skip_main_prologue): Ditto.
2165
13b3fd9b
MS
2166 * target.c (read_whatever_is_readable): Fix memory leak.
2167
d3f323f3
MS
2168 * i386-tdep.c (i386_process_record): Document fall through.
2169
421d5c74
JK
21702011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2171
2172 Fix DWARF-3+ DW_AT_accessibility default assumption.
2173 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2174 cu->header.version >= 3.
2175
63154eca
PA
21762011-03-08 Pedro Alves <pedro@codesourcery.com>
2177
2178 * remote.c (remote_check_symbols): Skip if the target has no
2179 execution.
2180
f1a507a1
JB
21812011-03-08 Joel Brobecker <brobecker@adacore.com>
2182
2183 * target.c (read_whatever_is_readable): Reformat comment,
2184 with a minor typo fix. Minor reformatting of the code.
2185
36073a92
YQ
21862011-03-08 Yao Qi <yao@codesourcery.com>
2187
2188 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
2189 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
2190 Use cached result instead of calling displaced_in_arm_mode again.
2191 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
2192 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
2193 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
2194 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
2195 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
2196 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
2197 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
2198 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
2199 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2200 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
2201 (arm_catch_kernel_helper_return): Likewise.
2202 * gdb/arm-tdep.h : Update function declarations.
2203
d3f323f3 22042011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 2205
e0e40094
MS
2206 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
2207
0b2381f5
MS
2208 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
2209
0350914a
MS
2210 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
2211
69feea6f
MS
2212 * elfread.c (elf_symtab_read): Stop memory leak.
2213
e6040cbd
MS
2214 * main.c (captured_main): Fix memory leak.
2215
052874e8
AS
22162011-03-07 Andreas Schwab <schwab@linux-m68k.org>
2217
2218 * ada-lang.c (compare_names): Call is_name_suffix with string1
2219 instead of string2.
2220
b11896a5
TT
22212011-03-07 Tom Tromey <tromey@redhat.com>
2222
2223 * xcoffread.c (xcoff_sym_fns): Update.
2224 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
2225 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
2226 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
2227 (symbol_file_add_with_addrs_or_offsets): Likewise.
2228 (reread_symbols): Handle OBJF_PSYMTABS_READ.
2229 * somread.c (som_sym_fns): Update.
2230 * psymtab.h (require_partial_symbols): Declare.
2231 * psymtab.c (require_partial_symbols): New function.
2232 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
2233 (ALL_OBJFILE_PSYMTABS): Undef.
2234 (ALL_PSYMTABS): Move from psympriv.h.
2235 (lookup_partial_symtab, find_pc_sect_psymtab)
2236 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
2237 (find_last_source_symtab_from_partial)
2238 (forget_cached_source_info_partial)
2239 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
2240 (expand_partial_symbol_tables, read_psymtabs_with_filename)
2241 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
2242 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
2243 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
2244 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
2245 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
2246 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
2247 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
2248 psymtabs.
2249 * mipsread.c (ecoff_sym_fns): Update.
2250 * machoread.c (macho_sym_fns): Update.
2251 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
2252 (read_psyms): New function.
2253 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
2254 (elf_sym_fns_lazy_psyms): New global.
2255 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
2256 dwarf2_build_psymtabs.
2257 * dbxread.c (aout_sym_fns): Update.
2258 * coffread.c (coff_sym_fns): Update.
2259
fda326dd
TT
22602011-03-07 Tom Tromey <tromey@redhat.com>
2261
2262 * infrun.c (print_exited_reason): Include inferior id and pid in
2263 message.
2264
aeaec162
TT
22652011-03-07 Tom Tromey <tromey@redhat.com>
2266
2267 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
2268 parameter.
2269 (target_has_execution_1): Update.
2270 (target_has_execution_current): Declare.
2271 (target_has_execution): Call target_has_execution_current.
2272 (default_child_has_execution): Update.
2273 * target.c (default_child_has_execution): Add 'the_ptid'
2274 parameter.
2275 (target_has_execution_1): Likewise.
2276 (target_has_execution_current): New function.
2277 (add_target): Update.
2278 (init_dummy_target): Update.
2279 * remote-m32r-sdi.c (m32r_has_execution): New function.
2280 (init_m32r_ops): Use it.
2281 * record.c (record_core_has_execution): Now static. Add
2282 'the_ptid' parameter.
2283 * inferior.c (have_live_inferiors): Don't save current thread.
2284 Use target_has_execution_1.
2285
08e14083
YQ
22862011-03-07 Yao Qi <yao@codesourcery.com>
2287
2288 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
2289
c05d19c5
JB
22902011-03-07 Joel Brobecker <brobecker@adacore.com>
2291
2292 * elfread.c (elf_symtab_read): Minor reformatting.
2293
3e6ef9e4
JB
22942011-03-07 Joel Brobecker <brobecker@adacore.com>
2295
2296 * objc-lang.c (selectors_info): Minor reformatting.
2297
dbb8534f
JB
22982011-03-07 Joel Brobecker <brobecker@adacore.com>
2299
2300 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
2301
dd70cc93
JB
23022011-03-07 Joel Brobecker <brobecker@adacore.com>
2303 Michael Snyder <msnyder@vmware.com>
2304
2305 * ada-valprint.c (ada_val_print_array): Move the declaration of
2306 "byte_order" and "elttype" inside the block where these variables
2307 are actually used. Remove some special handling for the case
2308 where "elttype" and "eltlen" are null. Replace by a comment
2309 and a couple of assertion checks.
2310
b27cf2b3
MS
23112011-03-05 Michael Snyder <msnyder@vmware.com>
2312
2313 * source.c (add_path): Replace semicolon at end of block.
2314 * dwarf2expr.c (execute_stack_op): Ditto.
2315
5387a0c6
MF
23162011-03-05 Mike Frysinger <vapier@gentoo.org>
2317
2318 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
2319 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
2320 (bfin-*-*): Likewise.
2321
e3aa49af
MS
23222011-03-05 Michael Snyder <msnyder@vmware.com>
2323
82ae4854
MS
2324 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
2325 * mdebugread.c (parse_symbol): Ditto.
2326 * parse.c (parse_exp_in_context): Ditto.
2327 * source.c (add_path): Ditto.
2328 * utils.c (gnu_debuglink_crc32): Ditto.
2329 * varobj.c (variable_language): Ditto.
2330
e3aa49af
MS
2331 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
2332
154f592e
MS
23332011-03-04 Michael Snyder <msnyder@vmware.com>
2334
da3ecdc6
MS
2335 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
2336
9cc89665
MS
2337 * symfile.c (simple_overlay_update): Check for null return value
2338 from lookup_minimal_symbol.
2339
154f592e
MS
2340 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
2341
63ffa6ee
TJB
23422011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2343
2344 * eval.c (parse_and_eval_address_1): Remove function.
2345 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
2346 instead of parse_and_eval_address_1.
2347 * value.h (parse_and_eval_address_1): Remove prototype.
2348
a17d146e
MS
23492011-03-04 Michael Snyder <msnyder@vmware.com>
2350
2351 * remote.c (putpkt_binary): Document that case stmt falls through.
2352
1a6a67de
TJB
23532011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2354
2355 * breakpointc (print_it_typical): Move NULL check from here...
2356 (print_bp_stop_message): ... to here.
2357
488919c4
MS
23582011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2359
2360 * breakpoint.c (enable_command): Use break instead of continue,
2361 and fill in a missing break.
2362 (disable_command): Ditto.
2363
1e182ce8
UW
23642011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
2365
2366 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
2367 (terminal_save_ours): Remove misleading comment.
2368 (inflow_inferior_data_cleanup): Free ttystate.
2369 (inflow_inferior_exit): Likewise.
2370 (copy_terminal_info): Copy ttystate.
2371
2372 * serial.c (serial_copy_tty_state): New function.
2373 * serial.h (serial_copy_tty_state): Add prototype.
2374 (struct serial_ops): Add copy_tty_state callback.
2375 * ser-base.c (ser_base_copy_tty_state): New function.
2376 * ser-base.h (ser_base_copy_tty_state): Add prototype.
2377 * ser-go32.c (dos_copy_tty_state): New function.
2378 (dos_ops): Install copy_tty_state callback.
2379 * ser-mingw.c (_initialize_ser_windows): Likewise.
2380 * ser-pipe.c (_initialize_ser_pipe): Likewise.
2381 * ser-unix.c (hardwire_copy_tty_state): New function.
2382 (_initialize_ser_hardwire): Install it.
2383
b2c5f112
MS
23842011-03-04 Michael Snyder <msnyder@vmware.com>
2385
2abae994
MS
2386 * breakpoint.c (create_breakpoint): Add missing break statement.
2387
7f5936f9
MS
2388 Reverting this patch:
2389 * infcall.c (call_function_by_hand): Add break statements for lint.
2390
b2c5f112
MS
2391 Reverting this patch:
2392 * cli/cli-script.c (script_from_file): Add break for lint.
2393
42b1321c
MS
23942011-03-04 Michael Snyder <msnyder@vmware.com>
2395
2396 * solib.c (reload_shared_libraries_1): Close memory leak.
2397
3e2a0cee
TT
23982011-03-03 Tom Tromey <tromey@redhat.com>
2399
2400 PR gdb/12538:
2401 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
2402 DW_STRING is NULL.
2403
58397cb7
MS
24042011-03-03 Michael Snyder <msnyder@vmware.com>
2405
2e3fd767
MS
2406 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
2407 fields of struct 'st' to zero.
2408
58397cb7
MS
2409 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
2410 sal.pspace before calling set_current_source_symtab_and_line.
2411
ced54c8f
YQ
24122011-03-03 Yao Qi <yao@codesourcery.com>
2413
2414 * Makefile.in (configure-common): Remove. Let Makefile
2415 in dir common to rebuild itself.
2416 (common/Makefile): Likewise.
2417
3351ea09
JB
24182011-03-03 Joel Brobecker <brobecker@adacore.com>
2419
2420 * utils.c (parse_escape): Add i18n markup in error message.
2421
bf9f652a
YQ
24222011-03-03 Yao Qi <yao@codesourcery.com>
2423
2424 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
2425 ARM_PC_REGNUM.
2426 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
2427 (displaced_write_reg, displaced_read_reg): Likewise.
2428 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
2429 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2430 (cleanup_branch): Replace magic number 14 and 15 with
2431 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
2432
d42de051
MS
24332011-03-02 Michael Snyder <msnyder@vmware.com>
2434
240f9570
MS
2435 * maint.c (maintenance_do_deprecate): No need to check for NULL.
2436
10dd8b54
MS
2437 * cli/cli-script.c (script_from_file): Add break for lint.
2438
b98bd911
MS
2439 * mdebugread.c (parse_partial_symbols): Fix indent.
2440
3494b66d
MS
2441 * target-descriptions.c (tdesc_gdb_type): No need to call
2442 xstrdup, callee saves a copy.
2443
daac021a
MS
2444 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
2445
c38d16a7
MS
2446 * infcall.c (call_function_by_hand): Add break statements for lint.
2447
905b671b
MS
2448 * utils.c (parse_escape): Escape the escape char.
2449
f2eb0bc8 2450 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
2451 PyList_Append fails.
2452 (gdbpy_inferiors): Error out if build_inferior_list fails.
2453
8c6a60d1
MS
2454 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
2455 a function call.
2456
d42de051
MS
2457 * record.c (record_restore): Move printf to before error return.
2458
4db71c0b
YQ
24592011-03-02 Yao Qi <yao@codesourcery.com>
2460
2461 * arm-tdep.h (struct displaced_step_closure): Add two new fields
2462 is_thumb and insn_size.
2463 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
2464 on both ARM and Thumb mode.
2465 (arm_process_displaced_insn): Set is_thumb and insn_size.
2466 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
2467 (arm_displaced_step_fixup): Likewise.
2468
a9dc8dcc
MS
24692011-03-01 Michael Snyder <msnyder@vmware.com>
2470
53624a93
MS
2471 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
2472
77766669
MS
2473 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
2474
62d5b8da
MS
2475 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
2476
5e9e105f
MS
2477 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
2478
dc19db01
MS
2479 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
2480 with xmalloc.
2481
5ce64950
MS
2482 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
2483 which shadows function parameter.
2484
a0aa2878
MS
2485 * tracepoint.c (create_tsv_from_upload): Superfluous call
2486 to xstrdup. Callee already calls xstrdup.
2487
e325fb69
MS
2488 * linespec.c (decode_line_1): Remove unnecessary null check.
2489
21cbba77
MS
2490 * tracepoint.c (scope_info): Fix mem leak, remove underused
2491 variable.
2492
63360adc
MS
2493 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
2494 superfluous null check.
2495
18ea20ac 2496 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 2497 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 2498
d014929c
MS
2499 * event-top.c (display_gdb_prompt): Remove superfluous null check.
2500
6e9130cf
MS
2501 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
2502 be null.
2503
5f01dbc0
MS
2504 * linespec.c (decode_line_1): Check for null before dereference.
2505
d684ab85
MS
2506 * reverse.c (record_restore): Move null-check to before pointer
2507 dereference.
2508
bfffb7e3
MS
2509 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
2510
a9dc8dcc
MS
2511 * objc-lang.c (selectors_info): Add explanitory comment.
2512 (classes_info): Ditto.
2513
478fd957
UW
25142011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2515
2516 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
2517 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
2518 versions of the trampoline. Handle Thumb vs. ARM addresses.
2519 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
2520 (arm_linux_init_abi): Install it.
2521 * arm-tdep.c (arm_psr_thumb_bit): Make global.
2522 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
2523
0480cefa
MS
25242011-02-28 Michael Snyder <msnyder@vmware.com>
2525
ac50ab3b
MS
2526 * ui-out.c (ui_out_field_core_addr): Make local char buffer
2527 a little bigger, to avoid possibility of an overflow.
2528
f63fbe86
MS
2529 * breakpoint.c (breakpoint_adjustment_warning): Make local char
2530 buffers a little bigger, to avoid possibility of an overflow.
2531
9e91a352
MS
2532 * coffread.c (coff_getfilename): Add check to avoid overflow.
2533
f2eb0bc8 2534 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
2535 avoid overflow.
2536 (classes_info): Error out on too long REGEXP.
2537
098ab512
MS
2538 * infrun.c (handle_inferior_event): Remove unused function call.
2539
bcbd1de9
MS
2540 * fork-child.c (fork_inferior): Remove ifdef'd code and
2541 unused variable.
2542
2e456570
MS
2543 * linux-thread-db.c (attach_thread): Discard unused value.
2544
14571dad
MS
2545 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
2546
a9cbf802
MS
2547 * remote.c (remote_get_noisy_reply): Discard unused value.
2548 (remote_vcont_resume): Ditto.
2549 (remote_stop_ns): Ditto.
2550
5715d26e
MS
2551 * linespec.c (decode_objc): Delete unused variable.
2552
4a9bca80
MS
2553 * tui/tui-regs.c (tui_register_format): Delete unused variable.
2554
f47fb265
MS
2555 * dwarf2read.c (add_partial_symbol): Discard unused values.
2556 (read_base_type): Delete unused variable.
2557
e81cff30
MS
2558 * dbxread.c (read_dbx_symtab): Discard unused value.
2559
262acaeb
MS
2560 * eval.c (evaluate_subexp_standard): Delete unused variable,
2561 and discard unused values.
2562
df983543
MS
2563 * infcmd.c (_initialize_infcmd): Discard unused values.
2564
89acf84d
MS
2565 * stabsread.c (rs6000_builtin_type): Missing break statement.
2566
ab8b8aca
MS
2567 * dbxread.c (process_one_symbol): Discard unused value.
2568
6b4511ab
MS
2569 * coffread.c (coff_end_symtab): Delete unused variable.
2570
e8e80198
MS
2571 * dwarf2read.c (dw2_get_file_names): Discard unused value.
2572 (dwarf2_add_typedef): Delete unused variable.
2573 (read_namespace): Ditto.
2574 (dwarf_decode_macros): Ditto.
2575
976aa66e
MS
2576 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
2577
5b92b49f
MS
2578 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
2579
91e8df85
MS
2580 * p-valprint.c (pascal_val_print): Discard unused value.
2581
899500d6
MS
2582 * utils.c (nquery): Call va_end before return;
2583 (yquery): Ditto.
2584 (query): Ditto.
2585
0480cefa
MS
2586 * proc-service.c (ps_plog): Call va_end before return.
2587
fb6a3ed3
TT
25882011-02-28 Tom Tromey <tromey@redhat.com>
2589
2590 * python/python.c (gdbpy_value_cst): New global.
2591 (_initialize_python): Initialize it.
2592 * python/python-internal.h (gdbpy_value_cst): Declare.
2593 * python/py-value.c (convert_value_from_python): Use
2594 gdbpy_value_cst.
2595
c05202a1
MS
25962011-02-28 Michael Snyder <msnyder@vmware.com>
2597
e463f587
MS
2598 * python/py-cmd.c (cmdpy_init): Fix memory leak.
2599
c38eea1a
MS
2600 * breakpoint.c (catch_syscall_completer): Free malloced list.
2601
3ef09ab5
MS
2602 * jv-lang.c (java_primitive_type_from_name): Add missing break.
2603
8f9a01ee
MS
2604 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
2605 (lval_func_check_synthetic_pointer): Ditto.
2606 (lval_func_free_closure): Fix use-after-free.
c05202a1 2607
477d0d57
TT
26082011-02-28 Tom Tromey <tromey@redhat.com>
2609
2610 * psymtab.c (expand_partial_symbol_tables): Use
2611 ALL_OBJFILE_PSYMTABS.
2612
20937029
JK
26132011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2614
2615 * objc-lang.c (selectors_info): Error on too long REGEXP.
2616
907b7f4f
MS
26172011-02-28 Michael Snyder <msnyder@vmware.com>
2618
92e96192
MS
2619 * python/py-param.c (set_parameter_value): Add missing
2620 break statement.
2621
907b7f4f
MS
2622 * linux-record.c (record_linux_system_call): Add missing
2623 break statement.
2624
12c5a436
UW
26252011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2626
2627 * breakpoint.c (print_one_breakpoint_location): Remove unused
2628 argument PRINT_ADDRESS_BITS. Update callers.
2629 (print_one_breakpoint): Likewise.
2630
170b53b2
UW
26312011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2632
2633 * breakpoint.c (wrap_indent_at_field): New function.
2634 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
2635 Allocate ui_stream locally instead of using STB argument.
2636 (print_one_breakpoint_location): Update call.
2637 * ui-out.c (ui_out_query_field): New function.
2638 * ui-out.h (ui_out_query_field): Add prototype.
2639
8ab1f94d
JB
26402011-02-28 Joel Brobecker <brobecker@adacore.com>
2641
2642 From Michael Snyder <msnyder@vmware.com>
2643 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
2644
7d488639
MS
26452011-02-27 Michael Snyder <msnyder@vmware.com>
2646
ae179fba
MS
2647 * objc-lang.c (selectors_info): Prevent string overrun.
2648
086dbf66
MS
2649 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
2650 error in strncpy.
2651
f2eb0bc8 2652 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
2653 outer scope.
2654
7d488639
MS
2655 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
2656 param with a local variable of the same name.
2657
3bd0f5ef
MS
26582011-02-27 Michael Snyder <msnyder@vmware.com>
2659
2660 * value.c (value_from_history_ref): New function.
2661 * value.h (value_from_history_ref): Export.
2662 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
2663 to parse value history references.
2664 * cli/cli-utils.h (get_number_trailer): Update comment.
2665
26662011-02-27 Michael Snyder <msnyder@vmware.com>
2667
2668 * inferior.c (detach_inferior_command): Use get_number_or_range.
2669 (kill_inferior_command): Ditto.
2670 (remove_inferior_command): Ditto.
2671 (initialize_inferiors): Make command names plural.
2672 Update help strings.
2673
766062f6
MS
26742011-02-27 Michael Snyder <msnyder@vmware.com>
2675
2676 * darwin-nat-info.c: Fix comment typo.
2677 * dwarf2expr.h: Ditto.
2678 * fbsd-nat.c: Ditto.
2679 * fbsd-nat.h: Ditto.
2680 * frame-unwind.h: Ditto.
2681 * frame.h: Ditto.
2682 * hppa-hpux-tdep.c: Ditto.
2683 * i386-linux-nat.c: Ditto.
2684 * linux-nat.c: Ditto.
2685 * nbsd-nat.c: Ditto.
2686 * nbsd-nat.h: Ditto.
2687 * ppc-linux-tdep.c: Ditto.
2688 * serial.c: Ditto.
2689 * ui-file.h: Ditto.
2690 * tui/tui-winsource.c: Ditto.
2691
f2c4ead5
MS
26922011-02-26 Michael Snyder <msnyder@vmware.com>
2693
86b887df
MS
2694 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
2695
66fd3b1e
MS
2696 * maint.c (maintenance_do_deprecate): Plug a memory leak.
2697
8c814cdd
MS
2698 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
2699 with a local variable of the same name.
2700
6d5e094a 2701 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 2702 param with a local variable of the same name.
6d5e094a 2703 (i387_supply_xsave): Ditto.
e5b3d7d6 2704
5eee517d
MS
2705 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
2706 that it does not shadow a function parameter.
2707
8fbf6b93
MS
2708 * i386-nat.c (i386_length_and_rw_bits): Document that case
2709 statement is meant to fall through.
2710
cb969d61
MS
2711 * expprint.c (dump_subexp_body_standard): Document that case
2712 statement is meant to fall through.
2713
f2c4ead5
MS
2714 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
2715 dead if statement. Condition can't be false.
2716
b021a221
MS
27172011-02-25 Michael Snyder <msnyder@vmware.com>
2718
2719 * arm-tdep.c: Fix typos in comments.
2720 * bsd-uthread.c: Ditto.
2721 * completer.c: Ditto.
2722 * corelow.c: Ditto.
2723 * cp-namespace.c: Ditto.
2724 * cp-support.c: Ditto.
2725 * cris-tdep.c: Ditto.
2726 * dbxread.c: Ditto.
2727 * dwarf2read.c: Ditto.
2728 * frame.h: Ditto.
2729 * gdbtypes.h: Ditto.
2730 * inferior.h: Ditto.
2731 * mdebugread.c: Ditto.
2732 * mips-tdep.c: Ditto.
2733 * ppc-linux-nat.c: Ditto.
2734 * ppc-linux-tdep.c: Ditto.
2735 * printcmd.c: Ditto.
2736 * sol-thread.c: Ditto.
2737 * solib-frv.c: Ditto.
2738 * solist.h: Ditto.
2739 * sparc64-tdep.c: Ditto.
2740 * spu-tdep.c: Ditto.
2741 * stabsread.c: Ditto.
2742 * symfile.c: Ditto.
2743 * valops.c: Ditto.
2744 * varobj.c: Ditto.
2745 * vax-nat.c: Ditto.
2746 * python/py-block.c: Ditto.
2747 * python/py-symbol.c: Ditto.
2748 * python/py-symtab.c: Ditto.
2749 * python/py-value.c: Ditto.
2750 * tui/tui-win.c: Ditto.
2751
c82c0b55
MS
27522011-02-25 Michael Snyder <msnyder@vmware.com>
2753
2754 * inferior.c (print_inferior): Accept a string instead of an int
2755 for requested_inferiors, and use get_number_or_range to parse it.
2756 (info_inferiors_command): Pass args string to print_inferior.
2757 (initialize_inferiors): Change help string for info inferiors.
2758 * inferior.h (print_inferior): Export prototype change.
2759
ee00cd23
TT
27602011-02-25 Tom Tromey <tromey@redhat.com>
2761
2762 * common/ax.def (invalid2): Set to 0x31.
2763
0502ed8c
JK
27642011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2765
2766 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
2767 L and plongest.
2768 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
2769 use L and plongest.
2770 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
2771
2c9de912
MS
27722011-02-24 Michael Snyder <msnyder@vmware.com>
2773
2774 * Makefile.in (clean): Make clean should remove generated files
2775 observer.h and observer.inc.
2776
a04b0428
JB
27772011-02-24 Joel Brobecker <brobecker@adacore.com>
2778
2779 Revert the following patch (not approved yet):
2780 2011-02-21 Hui Zhu <teawater@gmail.com>
2781 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2782 * ax-gdb.c (gen_printf_expr_callback): New function.
2783 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2784 * ax-general.c (ax_memcpy): New function.
2785 (ax_print): Handle "printf".
2786 (ax_reqs): Ditto.
2787 * ax.h (ax_memcpy): Forward declare.
2788 * common/ax.def (invalid2): Removed.
2789 (printf): New entry.
2790 * printcmd.c (printcmd.h): New include.
2791 (string_printf): New function.
2792 (ui_printf): Removed.
2793 (printf_command): Remove static. Call string_printf.
2794 (eval_command): Call string_printf.
2795 * printcmd.h: New file.
2796 * tracepoint.c (validate_actionline,
2797 encode_actions_1): handle printf_command.
2798
2b52013f
TT
27992011-02-23 Tom Tromey <tromey@redhat.com>
2800
2801 * ax-general.c (ax_pick): Add missing newline.
2802
e5a67952
MS
28032011-02-23 Michael Snyder <msnyder@vmware.com>
2804
2805 * breakpoint.c (breakpoint_1): Change first argument from an int
2806 to a char pointer, so that the function now accepts a list of
f2eb0bc8 2807 breakpoints rather than just one. Use new function
e5a67952
MS
2808 'number_is_in_list' to implement.
2809 (breakpoints_info): Pass char * instead of int to breakpoint_1.
2810 (watchpoints_info): Ditto.
2811 (tracepoints_info): Ditto.
2812 (maintenance_info_breakpoints): Ditto.
2813 (_initialize_breakpoint): Update help strings to reflect the fact
2814 that these functions can now take more than one argument.
2815 * cli/cli-utils.c (number_is_in_list): New function.
2816 * cli/cli-utils.h (number_is_in_list): Export.
2817
28182011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
2819
2820 * memattr.c (mem_enable_command): Use get_number_or_range.
2821 (mem_disable_command): Ditto.
2822 (mem_delete_command): Ditto.
2823 (_initialize_mem): Tweak usage message to reflect multiple
2824 arguments.
2825
6e6fbe60
DE
28262011-02-22 Doug Evans <dje@google.com>
2827
2828 Add gdb.lookup_global_symbol python function.
2829 * NEWS: Add entry.
2830 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
2831 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
2832 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
2833
79b97fa8
TT
28342011-02-22 Tom Tromey <tromey@redhat.com>
2835
2836 * language.c (language_class_name_from_physname): Rename
2837 'curr_language' argument to 'lang'; use in body.
2838
298f437a
MS
28392011-02-22 Michael Snyder <msnyder@vmware.com>
2840
2841 * cli/cli-utils.c (number_is_in_list): Check for zero return.
2842
b7ea3126
PA
28432011-02-22 Pedro Alves <pedro@codesourcery.com>
2844
2845 * frame-unwind.h: Fix comment to mention the this frame, not the
2846 next.
2847
58ee6d60
TT
28482011-02-22 Tom Tromey <tromey@redhat.com>
2849
2850 * symfile.c (auto_solib_limit): Remove.
2851 * symfile.h (auto_solib_limit): Remove.
2852
36238dbc
JB
28532011-02-22 Joel Brobecker <brobecker@adacore.com>
2854
2855 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
2856
aea5b279
MS
28572011-02-21 Michael Snyder <msnyder@vmware.com>
2858
2859 * gdbthread.h (print_thread_info): Change prototype.
2860 * thread.c (print_thread_info): Accept char* instead of int for
2861 requested_threads argument. Use new function number_is_in_list
2862 to determine which threads to list.
2863 (info_threads_command): Pass char* to print_thread_info.
2864 * cli/cli-utils.c (number_is_in_list): New function.
2865 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 2866 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
2867 print_thread_info.
2868 (print_one_inferior): Ditto.
2869 (mi_cmd_list_thread_groups): Ditto.
2870
8caa75ee
JK
28712011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2872
2873 * common/Makefile.in (CFLAGS): New.
2874 (COMPILE): Add $(CFLAGS).
2875
ea666128
TT
28762011-02-21 Tom Tromey <tromey@redhat.com>
2877
2878 * breakpoint.c (catch_syscall_command_1): Fix typo.
2879
e9cafbcc
TT
28802011-02-21 Tom Tromey <tromey@redhat.com>
2881
2882 * reverse.c: Include cli-utils.h.
2883 * printcmd.c: Include cli-utils.h.
2884 (string_printf): Use skip_spaces.
2885 * cli/cli-utils.h: New file.
2886 * cli/cli-utils.c: New file.
2887 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
2888 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
2889 * breakpoint.h (get_number, get_number_or_range): Move to
2890 cli-utils.h.
2891 * breakpoint.c: Include cli-utils.h.
2892 (get_number_trailer, get_number, get_number_or_range)
2893 (ep_skip_leading_whitespace): Move to cli-utils.c.
2894 (create_breakpoint_sal, find_condition_and_thread)
2895 (decode_static_tracepoint_spec, watch_command_1)
2896 (watch_maybe_just_location, ep_parse_optional_if_clause)
2897 (catch_fork_command_1, catch_exec_command_1)
2898 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
2899 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
2900 (SUBDIR_CLI_SRCS): Add cli-utils.c.
2901 (HFILES_NO_SRCDIR): Add cli-utils.h.
2902 (cli-utils.o): New target.
2903
f67fd822
PM
29042011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2905
2906 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
2907 before calling discard_all_inferiors.
2908
c9def01d
UW
29092011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2910
2911 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
2912 (struct builtin_opencl_type): Remove.
2913 (builtin_opencl_type): Change return type to "struct type **".
2914 (lookup_opencl_vector_type): Update caller.
2915 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
2916 (build_opencl_types): Install plain array of "struct type *"
2917 instead of "struct builtin_opencl_type".
2918
e3039479
UW
29192011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2920 Ulrich Weigand <uweigand@de.ibm.com>
2921
2922 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
2923 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
2924 (struct arm_linux_hwbp_cap): New type.
2925 (arm_linux_get_hwbp_cap): New function.
2926 (arm_linux_get_hw_breakpoint_count): Likewise.
2927 (arm_linux_get_hw_watchpoint_count): Likewise.
2928 (arm_linux_can_use_hw_breakpoint): Likewise.
2929 (arm_hwbp_type): New type.
2930 (arm_hwbp_control_t): Likewise.
2931 (struct arm_linux_hw_breakpoint): Likewise.
2932 (struct arm_linux_thread_points): Likewise.
2933 (arm_threads): New global variable.
2934 (arm_linux_find_breakpoints_by_tid): New function.
2935 (arm_hwbp_control_initialize): Likewise.
2936 (arm_hwbp_control_is_enabled): Likewise.
2937 (arm_hwbp_control_disable): Likewise.
2938 (arm_linux_hw_breakpoint_initialize): Likewise.
2939 (arm_linux_get_hwbp_type): Likewise.
2940 (arm_linux_hw_watchpoint_initialize): Likewise.
2941 (arm_linux_hw_breakpoint_equal): Likewise.
2942 (arm_linux_insert_hw_breakpoint1): Likewise.
2943 (arm_linux_remove_hw_breakpoint1): Likewise.
2944 (arm_linux_insert_hw_breakpoint): Likewise.
2945 (arm_linux_remove_hw_breakpoint): Likewise.
2946 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
2947 (arm_linux_insert_watchpoint): Likewise.
2948 (arm_linux_remove_watchpoint): Likewise.
2949 (arm_linux_stopped_data_address): Likewise.
2950 (arm_linux_stopped_by_watchpoint): Likewise.
2951 (arm_linux_watchpoint_addr_within_range): Likewise.
2952 (arm_linux_new_thread): Likewise.
2953 (arm_linux_thread_exit): Likewise.
2954 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
2955 related target callbacks. Register arm_linux_new_thread and
2956 arm_linux_thread_exit.
2957 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
2958 * arm-tdep.c (arm_pc_is_thumb): Make global.
2959 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
2960
b5db5dfc
UW
29612011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2962
2963 * breakpoint.c (update_watchpoint): Do not attempt to recreate
2964 per-frame locations while within a function epilogue.
2965
e25b2cfa
PM
29662011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2967
2968 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
2969 to GNU coding standards.
2970
4af53f97
PM
29712011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2972
2973 Allow use of mingw native on Windows 95 OS.
e25b2cfa 2974 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
2975 (ser_windows_close): Only call CancelIo if function exists.
2976 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
2977 to check for existence of CancelIo function in kernel32 DLL.
2978
d0e92d82
HZ
29792011-02-21 Hui Zhu <teawater@gmail.com>
2980
2981 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2982 * ax-gdb.c (gen_printf_expr_callback): New function.
2983 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2984 * ax-general.c (ax_memcpy): New function.
2985 (ax_print): Handle "printf".
2986 (ax_reqs): Ditto.
2987 * ax.h (ax_memcpy): Forward declare.
2988 * common/ax.def (invalid2): Removed.
2989 (printf): New entry.
2990 * printcmd.c (printcmd.h): New include.
2991 (string_printf): New function.
2992 (ui_printf): Removed.
2993 (printf_command): Remove static. Call string_printf.
2994 (eval_command): Call string_printf.
2995 * printcmd.h: New file.
2996 * tracepoint.c (validate_actionline,
2997 encode_actions_1): handle printf_command.
2998
7d357efd
MS
29992011-02-19 Michael Snyder <msnyder@vmware.com>
3000
3001 * reverse.c (delete_one_bookmark): Argument is now bookmark
3002 id rather than pointer to bookmark struct.
3003 (delete_bookmark_command): Use get_number_or_range.
3004 (goto_bookmark_command): Parse with get_number instead of strtoul.
3005 (bookmark_1): New function. Print info for one bookmark.
3006 (bookmarks_info): Use get_number_or_range and bookmark_1.
3007
7a45ebd7
MS
30082011-02-18 Michael Snyder <msnyder@vmware.com>
3009
f2eb0bc8 3010 * thread.c (info_threads_command): Re-implement using
7a45ebd7 3011 get_number_or_range.
65ebfb52 3012 (thread_apply_command): Ditto.
7a45ebd7 3013
94d5e490
TT
30142011-02-18 Tom Tromey <tromey@redhat.com>
3015
3016 * common/ax.def: New file.
3017 * ax.h (enum agent_op): Use ax.def.
3018 * ax-general.c (aop_map): Use ax.def.
3019
c7f96d2b
TT
30202011-02-18 Tom Tromey <tromey@redhat.com>
3021
3022 * ax-general.c (aop_map): Add pick and rot.
3023 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
3024 <DW_OP_rot>: Implement.
3025 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
3026 (ax_pick): Declare.
3027 * ax-general.c (ax_pick): New function.
3028
66694b75
TT
30292011-02-18 Tom Tromey <tromey@redhat.com>
3030
3031 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
3032
eeaafae2
JK
30332011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3034 Tom Tromey <tromey@redhat.com>
3035
3036 * cp-support.c (make_symbol_overload_list_namespace): Do not call
3037 make_symbol_overload_list_block with NULL BLOCK.
3038 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
3039
3c3fe74c
PA
30402011-02-18 Pedro Alves <pedro@codesourcery.com>
3041
3042 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
3043 * breakpoint.h (get_number_or_range): Declare.
3044 * printcmd.c (ALL_DISPLAYS): Declare.
3045 (delete_display): Reimplement taking a display pointer.
3046 (undisplay_command): Accept a range of displays to delete, using
3047 get_number_or_range.
3048
13163d80
PM
30492011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3050
3051 * c-valprint.c (c_val_print): Add embedded_offset to address
3052 for arrays of unspecified length.
3053 * p-valprint.c (pascal_val_print): Likewise.
3054
b434a28f
YQ
30552011-02-18 Yao Qi <yao@codesourcery.com>
3056
3057 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
3058 (arm_process_displaced_insn): .. here. Remove parameter INSN.
3059 (thumb_process_displaced_insn): New.
3060 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
3061 call to arm_process_displaced_insn.
3062 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
3063
9f6f94ff
TT
30642011-02-17 Tom Tromey <tromey@redhat.com>
3065
3066 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
3067 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
3068 compile_dwarf_to_ax. No longer static. Call
3069 dwarf2_compile_cfa_to_ax.
3070 (locexpr_tracepoint_var_ref): Update.
3071 (loclist_tracepoint_var_ref): Update.
3072 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
3073 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
3074 argument; add 'gdbarch' and 'pc'.
3075 (dwarf2_compile_cfa_to_ax): New function.
3076 (dwarf2_frame_cache): Update.
3077
e67ad678
JB
30782011-02-17 Joel Brobecker <brobecker@adacore.com>
3079
3080 * ada-lang.c (ada_type_of_array): Fix the size of the array
3081 in the case of an unconstrained packed array.
3082
946ebb0d
YQ
30832011-02-17 Yao Qi <yao@codesourcery.com>
3084
3085 * common/Makefile.in: Add more targets for make.
3086
1ba1b353
TT
30872011-02-16 Tom Tromey <tromey@redhat.com>
3088
3089 * dwarf2loc.c (unimplemented): Fix typo.
3090
b1bfef65
TT
30912011-02-16 Tom Tromey <tromey@redhat.com>
3092
3093 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
3094 (compile_dwarf_to_ax) <default>: Use unimplemented.
3095 <DW_OP_deref>: Update.
3096 (disassemble_dwarf_expression): Update.
3097 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
3098 (decode_locdesc): Update.
3099 * dwarf2expr.h (dwarf_stack_op_name): Update.
3100
5f1e6f19
TT
31012011-02-16 Tom Tromey <tromey@redhat.com>
3102
3103 * ax.h (struct aop_map) <name>: Now const.
3104
a0c78a73
PA
31052011-02-16 Tom Tromey <tromey@redhat.com>
3106
3107 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
3108 than axs_rvalue.
3109
946ebb0d 31102011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
3111
3112 * infrun.c (get_displaced_step_closure_by_addr): New.
3113 * inferior.h: Declare it.
3114 * arm-tdep.c: (arm_pc_is_thumb): Call
3115 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
3116 returns non-NULL.
3117
08807d5a
PA
31182011-02-16 Pedro Alves <pedro@codesourcery.com>
3119 Jan Kratochvil <jan.kratochvil@redhat.com>
3120
3121 gdb/
3122 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
3123
29976f3f
PA
31242011-02-16 Pedro Alves <pedro@codesourcery.com>
3125 Jan Kratochvil <jan.kratochvil@redhat.com>
3126
3127 * value.c (value_contents_copy_raw): Extend describing comment.
3128 Assert that the destination contents we're overwriting are wholly
3129 available.
fb68ae73 3130 (value_contents_copy): Extend describing comment.
29976f3f 3131
cd24cfaa
PA
31322011-02-16 Pedro Alves <pedro@codesourcery.com>
3133 Jan Kratochvil <jan.kratochvil@redhat.com>
3134
3135 * value.c (value_available_contents_eq): Remove redundant local
3136 variables. Fix available contents comparision.
3137 * value.h (value_available_contents_eq): Extend describing
3138 comment.
3139
60bbf338
YQ
31402011-02-16 Yao Qi <yao@codesourcery.com>
3141
3142 * thread.c (info_threads_command): Add missing i18n markup and remove
3143 trailing newline.
3144
17450429
PP
31452011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3146
3147 * breakpoint.c (longjmp_names): New variable.
3148 (struct breakpoint_objfile_data): New type.
3149 (breakpoint_objfile_key): New variable.
3150 (msym_not_found): New variable.
3151 (msym_not_found_p): New predicate.
3152 (get_breakpoint_objfile_data): New function.
3153 (create_overlay_event_breakpoint): Check per-objfile cache for
3154 symbols first.
3155 (create_longjmp_master_breakpoint): Likewise.
3156 (create_std_terminate_master_breakpoint): Likewise.
3157 (create_exception_master_breakpoint): Likewise.
3158 (_initialize_breakpoint): Register per-objfile data key.
3159
af02033e
PP
31602011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3161
3162 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
3163 parameter value.
3164 (create_longjmp_master_breakpoint): Loop over longjmp names.
3165 (create_std_terminate_master_breakpoint): Const-propagate parameter
3166 value.
3167 (update_breakpoints_after_exec): Adjust.
3168 (breakpoint_re_set): Adjust.
3169
60f98dde
MS
31702011-02-15 Michael Snyder <msnyder@vmware.com>
3171
cdf99611
MS
3172 * thread.c (info_threads_command): Process arg as thread id,
3173 or list of thread ids.
3174 (thread_find_command): New command.
3175 (_initialize_thread): Document argument for info threads.
3176 Document 'thread find' command.
3177 * NEWS: Document new command "thread find".
60f98dde 3178
0feedb2c
JK
31792011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3180
3181 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
3182 * aclocal.m4: Regenerated with aclocal-1.11.1.
3183 * common/configure: Regenerate with autoconf-2.64.
3184
648cd113
KW
31852011-02-15 Ken Werner <ken.werner@de.ibm.com>
3186
3187 * opencl-lang.c (build_opencl_types): Set the size of the built-in
3188 bool data type to a size of one byte.
3189
5657161f
PA
31902011-02-15 Pedro Alves <pedro@codesourcery.com>
3191 Jan Kratochvil <jan.kratochvil@redhat.com>
3192
3193 * target.c (memory_xfer_live_readonly_partial): Document where to
3194 look for interface description.
3195
494e194e
YQ
31962011-02-15 Yao Qi <yao@codesourcery.com>
3197
3198 PR tdep/12352
3199 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
3200 order to store PC value on stack instead of text section.
3201
d9492458
TJB
32022011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
3203
3204 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
3205 the EFP register set size.
3206 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
3207 data from the VMX register.
3208 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
3209 and write data from/to the VMX register.
3210
cdf99611
MS
32112011-02-14 Michael Snyder <msnyder@vmware.com>
3212
3213 * command.h (enum command_class): New class 'no_set_class', for
3214 "show" commands without a corresponding "set" command.
3215 * value.c (_initialize_values): Use 'no_set_class' for "show values".
3216 * copying.c (_initialize_copying): Ditto for "show copying" and
3217 "show warranty".
3218 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
3219 "show version".
3220 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
3221 which there is no corresponding "set" command (eg. "show copying").
3222
424447ee
PA
32232011-02-14 Pedro Alves <pedro@codesourcery.com>
3224 Jan Kratochvil <jan.kratochvil@redhat.com>
3225
3226 * exec.c (section_table_available_memory): Change `len' parameter
3227 type to ULONGEST.
3228 * exec.h (section_table_available_memory): Ditto.
3229 * value.h (read_value_memory): Rename the `offset' parameter to
3230 `embedded_offset'.
3231
c0f61f9c 32322011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 3233 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
3234
3235 * memrange.c (compare_mem_ranges): Mention sort order in
3236 describing comment.
3237 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
3238 * tracepoint.c (traceframe_available_memory): Extend comment to
3239 mention what happens to RESULT when the target does not support
3240 the query.
3241
6bfc80c7
PA
32422011-02-14 Pedro Alves <pedro@codesourcery.com>
3243 Jan Kratochvil <jan.kratochvil@redhat.com>
3244
3245 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
3246 range.
3247
e7303042
PA
32482011-02-14 Pedro Alves <pedro@codesourcery.com>
3249
3250 * value.c (value_bits_valid, value_bits_synthetic_pointer):
3251 No longer handle NULL values.
3252
8af8e3bc
PA
32532011-02-14 Pedro Alves <pedro@codesourcery.com>
3254
3255 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
3256 * value.c: Include "exceptions.h".
3257 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
3258 generic error.
3259 * cp-abi.c: Include gdb_assert.h.
3260 (baseclass_offset): Add `embedded_offset' and `val' parameters.
3261 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
3262 errors.
3263 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
3264 parameters. No longer returns -1 on error.
3265 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
3266 `val' parameters.
3267 * cp-valprint.c: Include exceptions.h.
3268 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
3269 the baseclass_offset. Handle unavailable base classes. Use
3270 val_print_invalid_address.
3271 * p-valprint.c: Include exceptions.h.
3272 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
3273 when fetching the baseclass_offset. No longer expect
3274 baseclass_offset returning -1. Handle unavailable base classes.
3275 Use val_print_invalid_address.
3276 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
3277 `valaddr' parameter, and change its type to gdb_byte pointer. Add
3278 `embedded_offset' and `val' parameters. Adjust.
3279 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
3280 parameter, and change its type to gdb_byte pointer. Add
3281 `embedded_offset' and `val' parameters. Adjust. No longer expect
3282 baseclass_offset returning -1.
3283 (value_dynamic_cast): Use value_contents_for_printing rather than
3284 value_contents. Adjust.
3285 (search_struct_field): No longer expect baseclass_offset returning
3286 -1.
3287 (search_struct_method): If reading memory from the target is
3288 necessary, wrap it in a new value to pass to baseclass_offset. No
3289 longer expect baseclass_offset returning -1.
3290 (find_method_list): No longer expect baseclass_offset returning
3291 -1. Use value_contents_for_printing rather than value_contents.
3292 * valprint.c (val_print_invalid_address): New function.
3293 * valprint.h (val_print_invalid_address): Declare.
3294 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
3295 and `val' parameters. No longer expect baseclass_offset returning
3296 -1. Adjust.
3297 * gnu-v2-abi.c: Include "exceptions.h".
3298 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
3299 parameters. Handle unavailable memory. Recurse through
3300 gnuv2_baseclass_offset directly, rather than through
3301 baseclass_offset. No longer returns -1 on not found, instead
3302 throw an error.
3303 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
3304 `val' parameters. Adjust.
3305
1b28d0b3
PA
33062011-02-14 Pedro Alves <pedro@codesourcery.com>
3307
3308 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
3309 almost but not quite adjacent.
3310
ec0a52e1
PA
33112011-02-14 Pedro Alves <pedro@codesourcery.com>
3312
3313 * value.h (value_entirely_available): Declare.
3314 * value.c (value_entirely_available): New function.
3315 * c-valprint.c (c_value_print): Don't try fetching the pointer's
3316 real type if the pointer is unavailable.
3317
24e6bcee
PA
33182011-02-14 Pedro Alves <pedro@codesourcery.com>
3319
3320 * valops.c (value_repeat): Use read_value_memory instead of
3321 read_memory.
3322
39d37385
PA
33232011-02-14 Pedro Alves <pedro@codesourcery.com>
3324
3325 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
3326 * value.c (value_contents_copy_raw, value_contents_copy): New
3327 functions.
3328 (value_primitive_field): Use value_contents_copy_raw instead of
3329 memcpy.
3330 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
3331 memcpy.
3332 (value_array, value_slice): Ditto.
3333 * valarith.c (value_subscripted_rvalue): Use
3334 value_contents_copy_raw instead of memcpy.
3335
a3d34bf4
PA
33362011-02-14 Pedro Alves <pedro@codesourcery.com>
3337
3338 <unavailable> references.
3339
3340 * valops.c (get_value_at): Use value_from_contents_and_address,
3341 avoiding read_memory.
3342
9fc6d940
PA
33432011-02-14 Pedro Alves <pedro@codesourcery.com>
3344
3345 * c-valprint.c (c_val_print): Print a string with unavailable
3346 contents as an array.
3347
5467c6c8
PA
33482011-02-14 Pedro Alves <pedro@codesourcery.com>
3349
3350 * value.h (unpack_bits_as_long): Delete declaration.
3351 (unpack_value_bits_as_long): Declare.
3352 (unpack_value_field_as_long): Declare.
3353 (value_field_bitfield): Declare.
3354 * value.c (unpack_bits_as_long): Rename to...
3355 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
3356 value parameters. Return the extracted result in a new output
3357 parameter. If the value contents are unavailable, return false,
3358 otherwise return true.
3359 (unpack_value_bits_as_long): New.
3360 (unpack_field_as_long): Rename to...
3361 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
3362 Add embedded_offset and value parameters. Return the extracted
3363 result in a new output parameter. If the value contents are
3364 unavailable, return false, otherwise return true.
3365 (unpack_value_field_as_long): New.
3366 (unpack_field_as_long_1): New.
3367 (unpack_field_as_long): Reimplement as wrapper around
3368 unpack_value_field_as_long_1.
3369 (value_field_bitfield): New function.
3370 * valops.c (value_fetch_lazy): When fetching a bitfield, use
3371 unpack_value_bits_as_long. Mark the value as unavailable, if it
3372 is unavailable.
3373 * jv-valprint.c (java_print_value_fields): Use
3374 value_field_bitfield.
3375 * p-valprint.c (pascal_object_print_value_fields): Use
3376 value_field_bitfield.
3377 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
3378
3158c6ed
PA
33792011-02-14 Pedro Alves <pedro@codesourcery.com>
3380
3381 * value.c (get_internalvar_integer): Also return the int value of
3382 TYPE_CODE_INT INTERNALVAR_VALUE values.
3383 (set_internalvar): Don't special case TYPE_CODE_INT.
3384
9fbdca0d
PA
33852011-02-14 Pedro Alves <pedro@codesourcery.com>
3386
3387 * value.c (struct internalvar) <enum internalvar_kind>: Remove
3388 INTERNALVAR_POINTER.
3389 <pointer>: Delete.
3390 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
3391 (set_internalvar): Remove special TYPE_CODE_PTR handling.
3392 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
3393
c8c1c22f
PA
33942011-02-14 Pedro Alves <pedro@codesourcery.com>
3395
3396 * value.h (value_available_contents_eq): Declare.
3397 * value.c (find_first_range_overlap): New function.
3398 (value_available_contents_eq): New function.
3399 * valprint.c (val_print_array_elements): Use
3400 value_available_contents_eq.
3401 * ada-valprint.c (val_print_packed_array_elements): Use
3402 value_available_contents_eq.
3403 * jv-valprint.c (java_value_print): Use
3404 value_available_contents_eq.
3405
e6e4e701
PA
34062011-02-14 Pedro Alves <pedro@codesourcery.com>
3407
3408 * target.c (target_read_live_memory): New function.
3409 (memory_xfer_live_readonly_partial): New.
3410 (memory_xfer_partial): If reading from a traceframe, fallback to
3411 reading unavailable read-only memory from read-only regions of
3412 live target memory.
3413 * tracepoint.c (disconnect_tracing): Adjust.
3414 (set_current_traceframe): New, factored out from
3415 set_traceframe_number.
3416 (set_traceframe_number): Reimplement to only change the traceframe
3417 number on the GDB side.
3418 (do_restore_current_traceframe_cleanup): Adjust.
3419 (make_cleanup_restore_traceframe_number): New.
3420 (cur_traceframe_number): New global.
3421 (tfile_open): Set cur_traceframe_number to no traceframe.
3422 (set_tfile_traceframe): New function.
3423 (tfile_trace_find): If looking up a traceframe using any method
3424 other than by number, make sure the current tfile traceframe
3425 matches gdb's current traceframe. Update the current tfile
3426 traceframe if the lookup succeeded.
3427 (tfile_fetch_registers, tfile_xfer_partial)
3428 (tfile_get_trace_state_variable_value): Make sure the remote
3429 traceframe matches gdb's current traceframe.
3430 * remote.c (remote_traceframe_number): New global.
3431 (remote_open_1): Set it to -1.
3432 (set_remote_traceframe): New function.
3433 (remote_fetch_registers, remote_store_registers)
3434 (remote_xfer_memory, remote_xfer_partial)
3435 (remote_get_trace_state_variable_value): Make sure the remote
3436 traceframe matches gdb's current traceframe.
3437 (remote_trace_find): If looking up a traceframe using any method
3438 other than by number, make sure the current remote traceframe
3439 matches gdb's current traceframe. Update the current remote
3440 traceframe if the lookup succeeded.
3441 * infrun.c (fetch_inferior_event): Adjust.
3442 * tracepoint.h (set_current_traceframe): Declare.
3443 (get_traceframe_number, set_traceframe_number): Add describing
3444 comments.
3445
e6ca34fc
PA
34462011-02-14 Pedro Alves <pedro@codesourcery.com>
3447
3448 Mark pieces of values as unavailable if the corresponding memory
3449 is unavailable.
3450
3451 * valops.c: Include tracepoint.h.
3452 (value_fetch_lazy): Use read_value_memory.
3453 (read_value_memory): New.
3454 * value.h (read_value_memory): Declare.
3455 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
3456 * exec.c (section_table_available_memory): New function.
3457 * exec.h (section_table_available_memory): Declare.
3458
2a7498d8
PA
34592011-02-14 Pedro Alves <pedro@codesourcery.com>
3460
3461 * Makefile.in (SFILES): Add memrange.c.
3462 (HFILES_NO_SRCDIR): Add memrange.h.
3463 (COMMON_OBS): Add memrange.o.
3464 * memrange.c: New file.
3465 * memrange.h: New file.
3466 * tracepoint.c: Include memrange.h.
3467 (struct mem_range): Delete.
3468 (mem_range_s): Delete.
3469 (traceframe_available_memory): New function.
3470 * tracepoint.h (traceframe_available_memory): Declare.
3471
b3b9301e
PA
34722011-02-14 Pedro Alves <pedro@codesourcery.com>
3473
3474 * target.h (struct traceframe_info): Forward declare.
3475 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
3476 (struct target_ops) <to_traceframe_info>: New field.
3477 (target_traceframe_info): New.
3478 * target.c (update_current_target): Inherit and default
3479 to_traceframe_info.
3480 * remote.c (PACKET_qXfer_traceframe_info): New.
3481 (remote_protocol_features): Register qXfer:traceframe-info:read.
3482 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
3483 (remote_traceframe_info): New.
3484 (init_remote_ops): Install it.
3485 (_initialize_remote): Install "set/show remote traceframe-info"
3486 commands.
3487 * tracepoint.h (parse_traceframe_info): Declare.
3488 * tracepoint.c (struct mem_range): New.
3489 (mem_range_s): New typedef.
3490 (struct traceframe_info): New.
3491 (traceframe_info): New global.
3492 (free_traceframe_info): New function.
3493 (clear_traceframe_info): New function.
3494 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
3495 info.
3496 (build_traceframe_info): New function.
3497 (tfile_traceframe_info): New function.
3498 (init_tfile_ops): Install tfile_traceframe_info.
3499 (traceframe_info_start_memory, free_result): New functions.
3500 (memory_attributes, traceframe_info_elements): New globals.
3501 (parse_traceframe_info, get_traceframe_info): New functions.
3502 * features/traceframe-info.dtd: New file.
3503 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
3504
4e07d55f
PA
35052011-02-14 Pedro Alves <pedro@codesourcery.com>
3506
3507 Base support for <unavailable> value contents.
3508
4e07d55f
PA
3509 * value.h (value_bytes_available): Declare.
3510 (mark_value_bytes_unavailable): Declare.
3511 * value.c (struct range): New struct.
3512 (range_s): New typedef.
3513 (ranges_overlap): New function.
3514 (range_lessthan): New function.
3515 (ranges_contain_p): New function.
3516 (struct value) <unavailable>: New field.
3517 (value_bytes_available): New function.
3518 (mark_value_bytes_unavailable): New function.
3519 (require_not_optimized_out): Constify parameter.
3520 (require_available): New function.
3521 (value_contents_all, value_contents): Require all bytes be
3522 available.
3523 (value_free): Free `unavailable'.
3524 (value_copy): Copy `unavailable'.
3525 * valprint.h (val_print_unavailable): Declare.
3526 * valprint.c (valprint_check_validity): Rename `offset' parameter
3527 to `embedded_offset'. If printing a scalar, check whether the
3528 value chunk is available.
3529 (val_print_unavailable): New.
3530 (val_print_scalar_formatted): Check whether the value is
3531 available.
3532 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
3533 pretty-printing unavailable values.
3534
bc9a5551
JK
35352011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3536
3537 Fix const/volatile qualifiers of C++ types, PR c++/12328.
3538 * c-typeprint.c (c_type_print_args): Update the function comment. New
3539 variable param_type, initialize it. Remove const/volatile qualifiers
3540 for language_cplus and !show_artificial. Use param_type.
3541
93b55aa1
JK
35422011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3543
3544 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
3545 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
3546 * symtab.h (struct symtab) <next>: Comment extension.
3547
181d9476
YQ
35482011-02-12 Yao Qi <yao@codesourcery.com>
3549
3550 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
3551
b708a5c7
JK
35522011-02-11 Yao Qi <yao@codesourcery.com>
3553
3554 * common/Makefile.in: Add copyright header.
3555
c5187ac6
PA
35562011-02-11 Pedro Alves <pedro@codesourcery.com>
3557
3558 * infrun.c (proceed): Move switching out and in of tfind mode from
3559 here ...
3560 (fetch_inferior_event): ... to here.
3561
4f3e6fb7
YQ
35622011-02-11 Yao Qi <yao@codesourcery.com>
3563
3564 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3565 libcommon.a.
3566 * configure.ac: Add common to sub dir.
3567 * configure: Regenerate.
3568
b708a5c7
JK
35692011-02-11 Yao Qi <yao@codesourcery.com>
3570
3571 Build libcommon.a.
3572
3573 * common/Makefile.in: New.
3574 * common/configure.ac: New.
3575 * common/aclocal.m4: New.
3576 * common/configure: Generate.
3577
2287cc7e
PA
35782011-02-10 Pedro Alves <pedro@codesourcery.com>
3579
3580 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
3581 side of the parenthesis.
3582
3583 Merge from GCC:
3584 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 3585 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 3586
fd62cb89
MS
35872011-02-08 Michael Snyder <msnyder@vmware.com>
3588
3589 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
3590
56d2815c
JK
35912011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3592
3593 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
3594 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
3595 psubd and paddd.
3596
4f7d61a8
JK
35972011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3598
3599 PR 12361.
3600 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
3601 phsubsw.
3602 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
3603 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
3604
54fcddd0
UW
36052011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3606
3607 * dwarf2read.c (read_subroutine_type): Set special calling
3608 convention flag for functions compiled by IBM XL C for OpenCL.
3609 * ppc-sysv-tdep.c: Include "dwarf2.h"
3610 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
3611 calling convention.
3612 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
3613 IBM OpenCL vector types calling convention.
3614 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
3615 (ppc_sysv_abi_broken_return_value): Likewise.
3616 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
3617 types calling convention.
3618 (ppc64_sysv_abi_return_value): Likewise.
3619 * spu-tdep.c: Include "dwarf2.h"
3620 (spu_return_value): Implement IBM OpenCL vector types calling
3621 convention.
3622
d6dafb7c
UW
36232011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3624
3625 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
3626 correct ABI for AltiVec vector arguments.
3627
32b72a42
PA
36282011-02-07 Pedro Alves <pedro@codesourcery.com>
3629
3630 * valprint.c (val_print): Extend comment.
3631 * ada-valprint.c (ada_valprint): Rewrite comment deferring
3632 interface explanation to val_print.
3633 (ada_val_print_array): Adjust comment to current interface.
3634 (print_field_values): Adjust comment to current interface.
3635 * c-valprint.c (c_val_print): Rewrite comment deferring interface
3636 explanation to val_print.
3637 * f-valprint.c (f_val_print): Ditto.
3638 * jv-valprint.c (java_val_print): Ditto.
3639 * m2-valprint.c (m2_val_print): Ditto.
3640 * p-valprint.c (pascal_val_print): Ditto.
3641
9998af43
TJB
36422011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
3643
3644 * breakpoint.c (parse_breakpoint_sals): Fix description.
3645
505500db 36462011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 3647 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
3648
3649 * python/py-inferior.c (python_on_normal_stop): New function.
3650 (python_on_resume): New function.
3651 (python_inferior_exit): New function.
3652 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
3653 inferior_exit observers.
3654 * python/py-evtregistry.c: New file.
3655 * python/py-threadevent.c : New file.
3656 * python/py-event.c: New file.
3657 * python/py-evts.c: New file.
3658 * python/py-continueevent.c: New file.
3659 * python/py-bpevent.c: New file.
3660 * python/py-signalevent.c: New file.
3661 * python/py-exetiedevent.c: New file.
3662 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
3663 Move struct breakpoint_object from here...
3664 * python/python-internal.h: ... to here.
3665 * python/py-event.h: New file.
3666 * python/py-events.h: New file.
3667 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
3668 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
3669 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
3670 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
3671 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
3672 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
3673 Add build rules for all the above.
3674
9e0ac564
TT
36752011-02-04 Tom Tromey <tromey@redhat.com>
3676
3677 * dwarf2read.c (dwarf2_section_empty_p): New function.
3678 (dwarf2_read_section): Use dwarf2_section_empty_p.
3679 (dwarf2_section_size): New function.
3680 (dwarf2_get_section_info): Unconditionally read section.
3681 (dwarf2_read_index): Use dwarf2_section_empty_p.
3682 (partial_read_comp_unit_head): Use dwarf2_section_size.
3683 (dwarf2_symbol_mark_computed): Likewise.
3684
eee5b35e
DD
36852011-02-04 David Daney <ddaney@caviumnetworks.com>
3686
3687 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
3688
385203ed
DD
36892011-02-04 David Daney <ddaney@caviumnetworks.com>
3690
3691 * mips-linux-tdep.c: Include xml-syscall.h.
3692 (mips_linux_get_syscall_number): New function.
3693 (mips_linux_init_abi): Add calls to
3694 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
3695 * data-directory/Makefile.in (SYSCALLS_FILES): Add
3696 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
3697 * syscalls/mips-n32-linux.xml: New file.
3698 * syscalls/mips-n64-linux.xml: New file.
3699 * syscalls/mips-o32-linux.xml: New file.
3700
9277c30c
UW
37012011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3702
3703 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
3704 Complain about inverted range entries.
3705 (dwarf2_record_block_ranges): Likewise.
3706
a3be7890
TJB
37072011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3708
3709 Fix some typos.
3710 * breakpoint.c (update_watchpoint): Fix name of the
3711 update_global_location_list function.
3712 (print_one_breakpoint): Fix typo.
3713 (_initialize_breakpoint): Remove extra space in hbreak help
3714 string.
3715 * breakpoint.h (struct bp_location) <length>: Fix field
3716 description.
3717
041274d8
PA
37182011-02-04 Pedro Alves <pedro@codesourcery.com>
3719
3720 * regcache.c (registers_changed_ptid): Don't explictly always
3721 clear `current_regcache'. Only clear current_thread_ptid and
3722 current_thread_arch when PTID matches. Only reinit the frame
3723 cache if PTID matches the current inferior_ptid. Move alloca(0)
3724 call to ...
3725 (registers_changed): ... here.
3726
c1c2ab58
UW
37272011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
3728
3729 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
3730 starts with __stack_chk_guard as stack guard symbol.
3731
9011945e
AB
37322011-02-03 Andrew Burgess <aburgess@broadcom.com>
3733
3734 * disasm.c (compare_lines): Handle the end of sequence markers
3735 within the line table to better support disassembling over
3736 compilation unit boundaries.
3737
e0634ccf
UW
37382011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3739
3740 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
3741 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
3742 implementation even if no symbols are available.
3743 (thumb_analyze_prologue): Update call to skip_prologue_function.
3744 (arm_analyze_prologue): Likewise.
3745
0e9e9abd
UW
37462011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3747
3748 * arm-tdep.c: Include "observer.h".
3749 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
3750 (arm_exidx_data_key): New static variable.
3751 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
3752 (struct arm_exidx_data): Likewise.
3753 (arm_exidx_data_free): New function.
3754 (arm_compare_exidx_entries): Likewise.
3755 (arm_obj_section_from_vma): Likewise.
3756 (arm_exidx_new_objfile): Likewise.
3757 (arm_find_exidx_entry): Likewise.
3758 (arm_exidx_fill_cache): Likewise.
3759 (arm_exidx_unwind_sniffer): Likewise.
3760 (arm_exidx_unwind): New global variable.
3761 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
3762 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
3763 observer. Register arm_exidx_data_key as objfile data.
3764
2e9e421f
UW
37652011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3766
3767 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
3768 due to accessing uninitialized variable. Fix indentation.
3769
580688f3
PA
37702011-02-02 Pedro Alves <pedro@codesourcery.com>
3771
3772 * c-valprint.c (c_value_print): When doing virtual base pointer
3773 adjustment, create a new value with adjusted contents rather than
3774 changing the contents of the value being printed (and getting it
3775 wrong).
3776
3d2c1d41
PA
37772011-02-02 Pedro Alves <pedro@codesourcery.com>
3778
3779 * xml-support.c (xml_find_attribute): New.
3780 (xinclude_start_include): Use it.
3781 * xml-support.h (xml_find_attribute): Declare.
3782 * memory-map.c (memory_map_start_memory)
3783 (memory_map_start_property): Use xml_find_attribute.
3784 * osdata.c (osdata_start_osdata, osdata_start_column): Use
3785 xml_find_attribute.
3786 * remote.c (start_thread): Use xml_find_attribute.
3787 * solib-target.c (library_list_start_segment)
3788 (library_list_start_section, library_list_start_library)
3789 (library_list_start_list): Use xml_find_attribute.
3790 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
3791 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
3792 (tdesc_start_field): Use xml_find_attribute.
3793
0af3e2db
UW
37942011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
3795
3796 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
3797 (BUILD_OCL_VTYPES): Update.
3798
c1039e3c
JB
37992011-02-02 Joel Brobecker <brobecker@adacore.com>
3800
3801 * configure.ac: Work around non-GNU sed limitation when computing
3802 python version number.
3803 * configure: Regenerate.
3804
600ea1be
JK
38052011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3806
3807 Fix debug printing of TYPE_INSTANCE.
3808 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
3809 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
3810
56c12414
JK
38112011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3812
3813 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
3814 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
3815 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
3816 * ada-operator.inc: Rename the file to ...
3817 * ada-operator.def: ... here, wrap all the entries by macro OP.
3818 * expprint.c (op_name_standard): Remove all the entries. Include
3819 "std-operator.def" instead.
3820 * expression.h (enum exp_opcode): Include "std-operator.def" and
3821 "ada-operator.def". Move all the entries ...
3822 * std-operator.def: ... here, wrap all the entries by macro OP.
3823
c52b559d
PP
38242011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3825
3826 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
3827 * breakpoint.c (remove_jit_event_breakpoints): New function.
3828 * jit.c (jit_descriptor_addr): Delete.
3829 (registering_code): Delete.
3830 (clear_int): Delete.
3831 (jit_inferior_data): New variable.
3832 (struct jit_inferior_data): New type.
3833 (get_jit_inferior_data): New function.
3834 (jit_inferior_data_cleanup): New function.
3835 (jit_read_descriptor): Adjust.
3836 (jit_register_code): Adjust.
3837 (jit_breakpoint_re_set_internal): New function; move code here ...
3838 (jit_inferior_init): ... from here.
3839 (jit_breakpoint_re_set): Adjust.
3840 (jit_reset_inferior_data_and_breakpoints): New function.
3841 (jit_inferior_created_observer): Adjust.
3842 (jit_inferior_exit_hook): Adjust.
3843 (jit_executable_changed_observer): New function.
3844 (jit_event_handler): Adjust.
3845 (_initialize_jit): Adjust.
3846
e839132d
MS
38472011-01-31 Michael Snyder <msnyder@vmware.com>
3848
3849 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
3850 line.
3851
47a80e90
TT
38522011-01-31 Tom Tromey <tromey@redhat.com>
3853
3854 PR python/12216:
3855 * python/python.c (execute_gdb_command): Call
3856 prevent_dont_repeat.
3857 * top.c (suppress_dont_repeat): New global.
3858 (dont_repeat): Use it.
3859 (prevent_dont_repeat): New function.
3860 * command.h (prevent_dont_repeat): Declare.
3861
45a43567
TT
38622011-01-31 Tom Tromey <tromey@redhat.com>
3863
3864 * infcmd.c (finish_backward): Use breakpoint_set_silent.
3865 * python/py-breakpoint.c (bppy_set_silent): Use
3866 breakpoint_set_silent.
3867 (bppy_set_thread): Use breakpoint_set_thread.
3868 (bppy_set_task): Use breakpoint_set_task.
3869 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
3870 (breakpoint_set_task): Declare.
3871 (make_breakpoint_silent): Remove.
3872 * breakpoint.c (breakpoint_set_silent): New function.
3873 (breakpoint_set_thread): Likewise.
3874 (breakpoint_set_task): Likewise.
3875 (make_breakpoint_silent): Remove.
3876
09d682a4
TT
38772011-01-31 Tom Tromey <tromey@redhat.com>
3878
3879 * breakpoint.h (user_breakpoint_p): Declare.
3880 * breakpoint.c (user_breakpoint_p): New function.
3881 (breakpoint_1): Use it.
3882 (save_breakpoints): Likewise.
3883
9c4ea6c5
JB
38842011-01-31 Joel Brobecker <brobecker@adacore.com>
3885
3886 * configure.ac: Add handling of Python distribution on Windows.
3887 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
3888 sysconfig variables are not defined, then do not use them.
3889 On Windows, if LIBPL is not defined, then use prefix + '/libs'
3890 instead. On Windows, return all paths using forward-slashes
3891 rather than backslashes.
3892
ac534cba
JB
38932011-01-31 Joel Brobecker <brobecker@adacore.com>
3894
3895 * configure.ac: Remove fallback behavior for building
3896 against Python. Remove tweaking of Python include path.
3897 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
3898 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
3899 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
3900 Always restore CPPFLAGS and LIBS after linking test.
3901 * configure: Regenerated.
3902 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
3903 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
3904 * python/python-internal.h: Adjust includes of Python .h files.
3905
c2f0d045
JB
39062011-01-31 Joel Brobecker <brobecker@adacore.com>
3907
3908 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
3909 in error message.
3910
6b0c4c1f
JB
39112011-01-31 Joel Brobecker <brobecker@adacore.com>
3912
3913 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
3914 value test.
3915
672c9795
YQ
39162011-01-31 Yao Qi <yao@codesourcery.com>
3917
3918 * arm-linux-nat.c: Update calls to regcache_register_status
3919 instead of regcache_valid_p.
3920 * aix-thread.c: Likewise.
3921 * i386gnu-nat.c: Likewise.
3922
80b23b6a
JK
39232011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3924
3925 Fix crash.
3926 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
3927 touching TYPE_FIELD_ARTIFICIAL.
3928
4cd712bd
RE
39292011-01-28 Richard Earnshaw <rearnsha@arm.com>
3930
3931 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
3932 Committers.
3933
ffd5ec24
PA
39342011-01-28 Pedro Alves <pedro@codesourcery.com>
3935
3936 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
3937 selected, don't try iterating over the traceframe's blocks.
3938 (tfile_has_stack): If there's no traceframe selected, then there's
3939 no stack.
3940 (tfile_has_registers): If there's no traceframe selected, then
3941 there's no registers.
3942
e8c9e0a1
PA
39432011-01-28 Pedro Alves <pedro@codesourcery.com>
3944
3945 * target.c (memory_xfer_partial): No need to restore shadows if we
3946 haven't read anything.
3947
de15c4ab
PA
39482011-01-28 Pedro Alves <pedro@codesourcery.com>
3949
3950 * mips-tdep.c (mips_print_register): Use get_frame_register_value
3951 and val_print_scalar_formatted.
3952
9f41c731
PA
39532011-01-27 Pedro Alves <pedro@codesourcery.com>
3954
3955 * tracepoint.c (tfile_read): New.
3956 (tfile_open): Use it.
3957 (tfile_get_traceframe_address): Use it.
3958 (tfile_trace_find): Use it.
3959 (walk_blocks_callback_func): New typedef.
3960 (match_blocktype): New function.
3961 (traceframe_walk_blocks): New function.
3962 (traceframe_find_block_type): New function.
3963 (tfile_fetch_registers, tfile_xfer_partial)
3964 (tfile_get_trace_state_variable_value): Use
3965 traceframe_find_block_type and tfile_read.
3966
cdefc55d
KB
39672011-01-26 Kevin Buettner <kevinb@redhat.com>
3968
3969 * remote-mips.c: Add internationalization mark ups. Remove
3970 trailing \n from already marked up strings.
3971
a81766d8
TT
39722011-01-26 Tom Tromey <tromey@redhat.com>
3973
3974 * python/py-prettyprint.c (print_string_repr): Clear
3975 'addressprint' option when calling val_print_string.
3976 (print_children): Handle Val_pretty_default. Clear 'addressprint'
3977 option when calling val_print_string.
3978
74aedc46
TT
39792011-01-26 Tom Tromey <tromey@redhat.com>
3980
3981 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
3982 GDB_PY_LL_ARG.
3983 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
3984 macros.
3985 (gdb_py_longest, gdb_py_ulongest): New typedefs.
3986 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
3987 (gdb_py_long_as_ulongest): New defines.
3988 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
3989 (gdb_py_int_as_long): Declare.
3990 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
3991 GDB_PY_LL_ARG, gdb_py_object_from_longest.
3992 (valpy_long): Add comment.
3993 * python/py-utils.c (get_addr_from_python): Use
3994 gdb_py_long_as_ulongest. Handle overflow properly.
3995 (gdb_py_object_from_longest): New function.
3996 (gdb_py_object_from_ulongest): Likewise.
3997 (gdb_py_int_as_long): Likewise.
3998 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
3999 * python/py-symtab.c (salpy_get_pc): Use
4000 gdb_py_long_from_ulongest.
4001 (salpy_get_line): Use PyInt_FromLong.
4002 * python/py-param.c (set_parameter_value): Use
4003 gdb_py_int_as_long.
4004 * python/py-lazy-string.c (stpy_get_address): Use
4005 gdb_py_long_from_ulongest.
4006 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4007 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4008 * python/py-breakpoint.c (bppy_set_thread): Use
4009 gdb_py_int_as_long.
4010 (bppy_set_task): Likewise.
4011 (bppy_set_ignore_count): Likewise.
4012 (bppy_set_hit_count): Likewise.
4013 * python/py-block.c (blpy_get_start): Use
4014 gdb_py_object_from_ulongest.
4015 (blpy_get_end): Likewise.
4016 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
4017
e4f6d2ec
TJB
40182011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
4019
4020 PR/symtab 11766:
4021 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
4022 * gdb/solib.c (solib_read_symbols): Check for addr_low in
4023 equality test for objfile, initialize addr_low if needed.
4024
b30aa278
PA
40252011-01-25 Pedro Alves <pedro@codesourcery.com>
4026
4027 * tui/tui-regs.c (tui_register_format): Remove dead code.
4028
ab2188aa
PA
40292011-01-25 Pedro Alves <pedro@codesourcery.com>
4030
4031 * printcmd.c (print_formatted): Use val_print_scalar_formatted
4032 instead of print_scalar_formatted.
4033 (print_scalar_formatted): Don't handle 's' format strings here,
4034 and add an assertion that we never see such format here.
4035 * valprint.h (val_print_scalar_formatted): Declare.
4036 * valprint.c (val_print_scalar_formatted): New.
4037 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
4038 instead of print_scalar_formatted.
4039 * jv-valprint.c (java_val_print): Ditto.
4040 * p-valprint.c (pascal_val_print): Ditto.
4041 * ada-valprint.c (ada_val_print_1): Ditto.
4042 * f-valprint.c (f_val_print): Ditto.
4043 * infcmd.c (registers_info): Ditto.
4044 * m2-valprint.c (m2_val_print): Ditto.
4045
66d61a4c
PA
40462011-01-25 Pedro Alves <pedro@codesourcery.com>
4047
4048 * m2-valprint.c (print_unbounded_array): Pass
4049 value_contents_for_printing rather than value_contents, to
4050 m2_print_array_contents. Also pass in the value.
4051
831adc1f
JK
40522011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4053
4054 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
4055 (save_gdb_index_command): Switch to .gdb_index version 4.
4056
20622269
PA
40572011-01-25 Pedro Alves <pedro@codesourcery.com>
4058
4059 * mi/mi-main.c (get_register): Use get_frame_register_value rather
4060 than frame_register, and always pass a valid value to val_print.
4061
585fdaa1
PA
40622011-01-25 Pedro Alves <pedro@codesourcery.com>
4063
4064 Centralize printing "<optimized out>".
4065
4066 * valprint.h (val_print_optimized_out): Declare.
4067 * cp-valprint.c (cp_print_value_fields): Use
4068 val_print_optimized_out.
4069 * jv-valprint.c (java_print_value_fields): Ditto.
4070 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4071 * printcmd.c (print_formatted): Ditto.
4072 * valprint.c (valprint_check_validity): Ditto.
4073 (value_check_printable): Ditto.
4074 (val_print_optimized_out): New.
4075
29ec5263
PA
40762011-01-25 Pedro Alves <pedro@codesourcery.com>
4077
4078 * infcmd.c (default_print_registers_info): Allocate values so to
4079 never pass a NULL value to val_print.
4080
de4127a3
PA
40812011-01-25 Pedro Alves <pedro@codesourcery.com>
4082
4083 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
4084 boolean. Make sure to always pass a value that matches the
4085 contents buffer to callees. Preserve `address' for following
4086 iterations.
4087 * value.c (value_contents_for_printing_const): New.
4088 (value_address): Constify value argument.
4089 * value.h (value_contents_for_printing_const): Declare.
4090 (value_address): Constify value argument.
4091
ee99023e
PA
40922011-01-25 Pedro Alves <pedro@codesourcery.com>
4093
4094 * regcache.c (struct regcache_descr): Rename
4095 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
4096 and sizeof_cooked_register_valid_p to
4097 sizeof_cooked_register_status.
4098 (init_regcache_descr): Adjust.
4099 (struct regcache): Rename register_valid_p field to
4100 register_status.
4101 (regcache_xmalloc_1, regcache_xfree, regcache_save)
4102 (do_cooked_read): Adjust.
4103 (regcache_valid_p): Rename to ...
4104 (regcache_register_status): ... this. Adjust.
4105 (regcache_invalidate): Adjust.
4106 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
4107 Adjust.
4108 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
4109 as unavailable, not valid.
4110 (regcache_dump): Adjust.
4111 * regcache.h (enum register_status): New.
4112 (regcache_register_status): Declare.
4113 (regcache_invalidate): Delete declaration.
4114 * corelow.c (get_core_registers): Adjust.
4115 * tracepoint.c (tfile_fetch_registers): Adjust.
4116 * trad-frame.c (REG_VALUE): Rename to ...
4117 (TF_REG_VALUE): ... this.
4118 (REG_UNKNOWN): Rename to ...
4119 (TF_REG_UNKNOWN): ... this.
4120 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
4121 * mi/mi-main.c (register_changed_p): Adjust.
4122
99e42fd8
PA
41232011-01-25 Pedro Alves <pedro@codesourcery.com>
4124
4125 * regcache.c (struct regcache_descr): Remove outdated comment.
4126 (init_regcache_descr): Remove sizeof_raw_register_valid_p
4127 overallocate hack.
4128 (regcache_xmalloc): Rename to ...
4129 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
4130 Allocate the regcache type accordingly.
4131 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
4132 (regcache_xfree): Asser the source is also readonly. Copy sizeof
4133 cooked registers, not raw.
4134 (regcache_dup_no_passthrough): Delete.
4135 (get_thread_arch_regcache): Use regcache_xmalloc_1.
4136 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
4137 mention obsolete write_register_bytes.
4138 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
4139
f7605bc2
PA
41402011-01-25 Pedro Alves <pedro@codesourcery.com>
4141
4142 Stop remote_read_bytes from handling partial reads itself.
4143
4144 * remote-fileio.c: Include target.h.
4145 (remote_fileio_write_bytes): Delete.
4146 (remote_fileio_func_open, remote_fileio_func_write)
4147 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
4148 target_read_memory.
4149 (remote_fileio_func_stat): Use target_read_memory and
4150 target_write_memory.
4151 (remote_fileio_func_gettimeofday): Use target_write_memory.
4152 (remote_fileio_func_system): Use target_read_memory.
4153 * remote.c (remote_write_bytes): Make it static.
4154 (remote_read_bytes): Don't handle partial reads here.
4155 * remote.h (remote_read_bytes): Delete declaration.
4156
efc0eabd
PA
41572011-01-25 Pedro Alves <pedro@codesourcery.com>
4158
4159 Simplify XML parsing a bit.
4160
4161 * xml-support.h (gdb_xml_parse_quick): Declare.
4162 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
4163 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
4164 parameter.
4165 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
4166 gdb_xml_create_parser_and_cleanup_1.
4167 (gdb_xml_parse_quick): New.
4168 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
4169 * osdata.c (osdata_parse): Ditto.
4170 * remote.c (remote_threads_info): Ditto.
4171 * solib-target.c (solib_target_parse_libraries): Ditto.
4172 * xml-syscall.c (syscall_parse_xml): Ditto.
4173 * xml-tdesc.c (tdesc_parse_xml): Ditto.
4174
314d366a
KB
41752011-01-24 Kevin Buettner <kevinb@redhat.com>
4176
4177 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
4178 with remote-mips.o added to gdb_target_obs.
4179 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
4180
a491d753
PA
41812011-01-24 Pedro Alves <pedro@codesourcery.com>
4182
4183 * ada-valprint.c (val_print_packed_array_elements): Pass the
4184 correct struct value to val_print.
4185 (ada_val_print_1): Ditto.
4186
490f124f
PA
41872011-01-24 Pedro Alves <pedro@codesourcery.com>
4188
4189 Don't lose embedded_offset in printing routines throughout.
4190
4191 * valprint.h (val_print_array_elements): Change prototype.
4192 * valprint.c (val_print_array_elements): Add `embedded_offset'
4193 parameter, and adjust to pass it down to val_print, while passing
4194 `valaddr' or `address' unmodified. Take embedded_offset into
4195 account when checking repetitions.
4196 * c-valprint.c (c_val_print): Pass embedded_offset to
4197 val_print_array_elements instead of adjusting `valaddr' and
4198 `address'.
4199 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
4200 embedded_offset to val_print_array_elements instead of adjusting
4201 `valaddr'.
4202 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
4203 * p-valprint.c (pascal_val_print): Pass embedded_offset to
4204 val_print_array_elements and pascal_object_print_value_fields
4205 instead of adjusting `valaddr'.
4206 (pascal_object_print_value_fields): Add `offset' parameter, and
4207 adjust to use it.
4208 (pascal_object_print_value): Add `offset' parameter, and adjust to
4209 use it.
4210 (pascal_object_print_static_field): Use
4211 value_contents_for_printing/value_embedded_offset, rather than
4212 value_contents.
4213 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
4214 parameter, and adjust to use it. Use
4215 value_contents_for_printing/value_embedded_offset, rather than
4216 value_contents.
4217 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
4218 (ada_val_print_array): Add `offset' parameter, and adjust to use
4219 it.
4220 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
4221 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
4222 Instead work with offsets. Use
4223 value_contents_for_printing/value_embedded_offset, rather than
4224 value_contents. Change `defer_val_int' local type to CORE_ADDR,
4225 and use value_from_pointer to extract a target pointer, rather
4226 than value_from_longest.
4227 (print_variant_part): Add `offset' parameter. Replace
4228 `outer_valaddr' parameter by a new `outer_offset' parameter.
4229 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4230 (ada_value_print): Use
4231 value_contents_for_printing/value_embedded_offset, rather than
4232 value_contents.
4233 (print_record): Add `offset' parameter, and adjust to pass it
4234 down.
4235 (print_field_values): Add `offset' parameter. Replace
4236 `outer_valaddr' parameter by a new `outer_offset' parameter.
4237 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4238 Use value_contents_for_printing/value_embedded_offset, rather than
4239 value_contents.
4240 * d-valprint.c (dynamic_array_type): Use
4241 value_contents_for_printing/value_embedded_offset, rather than
4242 value_contents.
4243 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
4244 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4245 (java_print_value_fields): Take `offset' into account. Don't
4246 re-adjust `valaddr'. Instead pass down adjusted offsets.
4247 (java_val_print): Take `embedded_offset' into account. Pass it to
4248 java_print_value_fields.
4249 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
4250 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
4251 down adjusted offsets.
4252 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
4253 (f_val_print): Take `embedded_offset' into account.
4254
7bfc9434
JB
42552011-01-21 Joel Brobecker <brobecker@adacore.com>
4256
4257 * inflow.c: Include "gdbcmd.h".
4258 (interactive_mode): New static global, moved here from top.c.
4259 (show_interactive_mode): New function, moved here from top.c.
4260 use gdb_has_a_terminal instead of input_from_terminal_p to
4261 determine the current mode.
4262 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
4263 setting.
4264 (_initialize_inflow): Add the "set/show interactive-mode"
4265 commands. Moved here from top.c, after having adjusted slightly
4266 the help text.
4267 * top.c (interactive_mode, show_interactive_mode): Delete, moved
4268 to inflow.c.
4269 (input_from_terminal_p): Remove handling of "interactive-mode"
4270 setting, moved to infow.c.
4271 (init_main): Remove creation of the "set/show interactive-mode"
4272 commands, moved to inflow.c.
4273
44603653
JB
42742011-01-19 Joel Brobecker <brobecker@adacore.com>
4275
4276 * NEWS: Add entry for native ia64-hpux support.
4277
4694da01
TT
42782011-01-19 Tom Tromey <tromey@redhat.com>
4279
4280 PR mi/8618:
4281 * thread.c (free_thread): Free 'name'.
4282 (print_thread_info): Emit thread name. Change CLI output.
4283 (thread_name_command): New function.
4284 (do_captured_thread_select): Emit newline.
4285 (_initialize_thread): Register 'thread name' command.
4286 * target.h (struct target_ops) <to_thread_name>: New field.
4287 (target_thread_name): New macro.
4288 * target.c (update_current_target): Handle to_thread_name.
4289 * python/py-infthread.c (thpy_get_name): New function.
4290 (thpy_set_name): Likewise.
4291 (thread_object_getset): Add "name".
4292 * linux-nat.c (linux_nat_thread_name): New function.
4293 (linux_nat_add_target): Set to_thread_name.
4294 * gdbthread.h (struct thread_info) <name>: New field.
4295
10d44370
JB
42962011-01-18 Joel Brobecker <brobecker@adacore.com>
4297
4298 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
4299 (ada_val_print_1): Likewise.
4300
e3acb115
JB
43012011-01-18 Joel Brobecker <brobecker@adacore.com>
4302
4303 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
4304 upper limit address is not greater than the function end address
4305 when the upper limit could not be computed using the debugging
4306 info.
4307
dc92e161
TT
43082011-01-17 Tom Tromey <tromey@redhat.com>
4309
4310 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
4311 get_regcomp_error.
4312 * utils.c: Include gdb_regex.h.
4313 (do_regfree_cleanup): New function.
4314 (make_regfree_cleanup): Likewise.
4315 (get_regcomp_error): Likewise.
4316 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
4317
f55af66d
TT
43182011-01-17 Tom Tromey <tromey@redhat.com>
4319
4320 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
4321 re_compile_fastmap.
4322
a5a44b53
PM
43232011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
4324
4325 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
4326 for internal variables.
4327 (last_was_structop): New static variable.
4328 (COMPLETE): New token.
4329 (field_exp): New rule to group all '.' suffix handling.
4330 Add mark_struct_expression calls when approriate to be able
4331 to correctly find fields for completion.
4332 (yylex): Adapt to handle field completion and set INTVAR when
4333 required.
4334
2c291032
YQ
43352011-01-14 Yao Qi <yao@codesourcery.com>
4336
4337 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
4338 save_reggroup, restore_reggroup and all_reggroup.
4339
447b483c
JB
43402011-01-14 Joel Brobecker <brobecker@adacore.com>
4341
4342 * ada-valprint. (ada_printchar): Use the correct type length
4343 in call to ada_emit_char.
4344 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
4345
7b64a93b
PM
43462011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
4347
4348 * solib-som.h (hpux_major_release): Declare variable here.
4349 * solib-som.c: Remove <sys/utsname.h> header.
4350 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
4351 (hpux_major_release): Make global, change default value to
4352 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 4353 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
4354 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
4355 Add "solib-som.h" header.
4356 (set_hpux_major_release): New function.
4357 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
4358
4e18c053
MF
43592011-01-14 Mike Frysinger <vapier@gentoo.org>
4360
4361 * configure.tgt (*-*-uclinux*): Match more Linux os targets
4362
a9df6b22
JB
43632011-01-14 Joel Brobecker <brobecker@adacore.com>
4364
4365 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
4366 new-line at end of warning message.
4367 (ia64_hpux_store_register): Remove trailing new-line at end of
4368 error message.
4369 * ia64-hpux-tdep.c: Rephrase comment.
4370 * solib-ia64-hpux.c (struct dld_info): Change type of field
4371 dld_flags from "long long" to ULONGEST.
4372
ecb956dd
PA
43732011-01-14 Pedro Alves <pedro@codesourcery.com>
4374
4375 * target.h (deprecated_child_ops): Delete declaration.
4376 * target.c (deprecated_child_ops): Delete definition.
4377
76adfcae
PA
43782011-01-14 Pedro Alves <pedro@codesourcery.com>
4379
4380 * Makefile.in (hpux-thread.o): Delete rule.
4381 * configure.ac: Don't check for HPUX DCE threads support.
4382 * configure, config.in: Regenerate.
4383 * hppa-hpux-nat.c (child_suppress_run): Delete.
4384 (hppa_hpux_child_can_run): Delete.
4385 (_initialize_hppa_hpux_nat): Don't override to_can_run.
4386 * hpux-thread.c: Delete.
4387
042e866e
JB
43882011-01-13 Joel Brobecker <brobecker@adacore.com>
4389
4390 * hpux-thread.c (hpux_pid_to_str): Delete.
4391
4ffa5a33
JB
43922011-01-13 Joel Brobecker <brobecker@adacore.com>
4393
4394 * ada-valprint.c (ada_emit_char): Remove strange code.
4395 Check that c is <= UCHAR_MAX before passing it to isascii.
4396 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
4397
de8fa76c
JB
43982011-01-13 Joel Brobecker <brobecker@adacore.com>
4399
4400 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
4401 to the case where instream is stdin.
4402
c4de7027
JB
44032011-01-13 Joel Brobecker <brobecker@adacore.com>
4404
4405 * ia64-tdep.h (struct regcache): Forward declare.
4406 (struct ia64_infcall_ops): New struct type.
4407 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
4408 and "infcall_ops".
4409 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
4410 Renames ia64_find_global_pointer.
4411 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
4412 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
4413 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
4414 methods.
4415 (ia64_infcall_ops): New static global constant.
4416 (ia64_gdbarch_init): Set tdep->infcall_ops.
4417 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
4418 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
4419 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
4420 (ia64_hpux_dummy_code): New static global constant.
4421 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
4422 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
4423 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
4424 New function.
4425 (ia64_hpux_infcall_ops): New static global constant.
4426 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
4427 for inferior function calls to work properly on ia64-hpux.
4428
77ca787b
JB
44292011-01-13 Joel Brobecker <brobecker@adacore.com>
4430
4431 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
4432 * ia64-tdep.h (struct frame_info): forward declaration.
4433 (struct gdbarch_tdep): Add field size_of_register_frame.
4434 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
4435 to determine the size of the register frame.
4436 (ia64_size_of_register_frame): New function.
4437 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
4438 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
4439 (IA64_HPUX_UREG_REASON): New macro.
4440 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
4441 New functions.
4442 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
4443 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
4444 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
4445 objects.
4446
92c9a463
JB
44472011-01-13 Joel Brobecker <brobecker@adacore.com>
4448
4449 Add support for ia64-hpux.
4450 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
4451 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
4452
4453 * configure.host: Add handling for ia64-hpux hosts. Add associated
4454 floatformats.
4455 * configure.tgt: Add handling for ia64-hpux targets.
4456 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
4457 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
4458 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
4459
f688d93f
JB
44602011-01-13 Joel Brobecker <brobecker@adacore.com>
4461
4462 [ttrace] Compute thread list immediately after attach.
4463 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
4464 New subprogram.
4465 (inf_ttrace_attach): Use it.
4466
1b89e62f
JB
44672011-01-13 Joel Brobecker <brobecker@adacore.com>
4468
4469 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
4470 if we could not determine the frame's function address. Instead,
4471 use the frame's PC, and then continue.
4472
3e5e6e2a
JB
44732011-01-13 Joel Brobecker <brobecker@adacore.com>
4474
4475 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
4476 not already defined.
4477
825d6d8a
JB
44782011-01-13 Joel Brobecker <brobecker@adacore.com>
4479
4480 * ia64-tdep.c (ia64_struct_type_p): New function.
4481 (ia64_extract_return_value): Handle integral values that are
4482 less than 8 bytes long.
4483 (ia64_push_dummy_call): Likewise.
4484
7458e667
JB
44852011-01-13 Joel Brobecker <brobecker@adacore.com>
4486
4487 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
4488 floatformat_ia64_ext.
4489 (floatformat_ia64_ext_big): New static const.
4490 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
4491
1b05df00
TT
44922011-01-12 Tom Tromey <tromey@redhat.com>
4493
4494 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
4495 messages.
4496 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
4497 (mi_cmd_thread_list_ids): Likewise.
4498 (mi_cmd_data_list_changed_registers): Likewise.
4499 (mi_cmd_data_list_register_values): Likewise.
4500 (mi_cmd_data_write_register_values): Likewise.
4501 (mi_cmd_data_evaluate_expression): Likewise.
4502 (mi_cmd_data_read_memory): Likewise.
4503 (mi_cmd_data_read_memory_bytes): Likewise.
4504 (mi_cmd_data_write_memory): Likewise.
4505 (mi_cmd_enable_timings): Likewise.
4506 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
4507 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
4508 (mi_cmd_var_delete): Likewise.
4509 (mi_cmd_var_set_format): Likewise.
4510 (mi_cmd_var_show_format): Likewise.
4511 (mi_cmd_var_info_num_children): Likewise.
4512 (mi_cmd_var_list_children): Likewise.
4513 (mi_cmd_var_info_type): Likewise.
4514 (mi_cmd_var_info_expression): Likewise.
4515 (mi_cmd_var_show_attributes): Likewise.
4516 (mi_cmd_var_assign): Likewise.
4517 (mi_cmd_var_update): Likewise.
4518 (mi_cmd_enable_pretty_printing): Likewise.
4519 (mi_cmd_var_set_update_range): Likewise.
4520 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
4521 messages.
4522 (mi_cmd_target_file_put): Likewise.
4523 (mi_cmd_target_file_delete): Likewise.
4524 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
4525 messages.
4526 (mi_cmd_stack_info_depth): Likewise.
4527 (mi_cmd_stack_list_locals): Likewise.
4528 (mi_cmd_stack_list_args): Likewise.
4529 (mi_cmd_stack_select_frame): Likewise.
4530 (mi_cmd_stack_select_frame): Likewise.
4531 (mi_cmd_stack_info_frame): Likewise.
4532 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
4533 messages.
4534 (mi_cmd_file_list_exec_source_files): Likewise.
4535 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
4536 (mi_cmd_env_cd): Likewise.
4537 (mi_cmd_env_path): Likewise.
4538 (mi_cmd_env_dir): Likewise.
4539 (mi_cmd_inferior_tty_show): Likewise.
4540 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
4541 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
4542 (mi_cmd_break_watch): Likewise.
4543
ad422571
TJB
45442011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
4545
4546 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
4547 (ppc_linux_insert_hw_breakpoint): Likewise.
4548 (ppc_linux_remove_hw_breakpoint): Likewise.
4549 (ppc_linux_insert_watchpoint): Likewise.
4550
c2ff108b
JK
45512011-01-12 Andrew Burgess <aburgess@broadcom.com>
4552 Jan Kratochvil <jan.kratochvil@redhat.com>
4553
4554 PR fortran/11104 and DWARF unbound arrays detection.
4555 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
4556 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
4557 unspecified upper bound.
4558 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
4559 variables array_size_array, tmp_type and offset_item. New variable
4560 array. Remove call to f77_get_upperbound. New variables array_type
4561 and index. Call value_subscripted_rvalue for each dimenasion. Remove
4562 the final call to deprecated_set_value_type.
4563
41e8491f
JK
45642011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4565
4566 Make value allocations more lazy.
4567 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
4568 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 4569 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
4570 instead of allocate_value and set_value_lazy.
4571 * findvar.c (value_of_register_lazy): Likewise.
4572 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 4573 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
4574 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
4575 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
4576 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
4577 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
4578 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
4579 the end, remove set_value_lazy there.
4580 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
4581 instead of allocate_value and set_value_lazy when possible.
4582 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
4583 * value.c (allocate_computed_value): Use allocate_value_lazy instead
4584 of allocate_value and set_value_lazy.
4585 (value_from_contents_and_address): Use allocate_value_lazy instead of
4586 allocate_value and set_value_lazy when possible.
4587
b716877b
AB
45882011-01-12 Andrew Burgess <aburgess@broadcom.com>
4589
4590 * disasm.c (dump_insns): Support dumping opcodes for MI.
4591 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
4592 dumping of instruction opcodes.
4593
d5ae309f
JB
45942011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
4595
4596 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
4597 appropiately.
4598
98871305
TT
45992011-01-11 Tom Tromey <tromey@redhat.com>
4600
4601 * thread.c (do_captured_thread_select): Emit newline before
4602 printing frame.
4603
c378eb4e
MS
46042011-01-11 Michael Snyder <msnyder@vmware.com>
4605
4606 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
4607 * score-tdep.c: Ditto.
4608 * score-tdep.h: Ditto.
4609 * ser-base.c: Ditto.
4610 * ser-go32.c: Ditto.
4611 * serial.c: Ditto.
4612 * serial.h: Ditto.
4613 * ser-mingw.c: Ditto.
4614 * ser-pipe.c: Ditto.
4615 * ser-tcp.c: Ditto.
4616 * ser-unix.c: Ditto.
4617 * sh64-tdep.c: Ditto.
4618 * shnbsd-nat.c: Ditto.
4619 * sh-tdep.c: Ditto.
4620 * sh-tdep.h: Ditto.
4621 * solib.c: Ditto.
4622 * solib-darwin.c: Ditto.
4623 * solib-frv.c: Ditto.
4624 * solib.h: Ditto.
4625 * solib-irix.c: Ditto.
4626 * solib-osf.c: Ditto.
4627 * solib-pa64.c: Ditto.
4628 * solib-som.c: Ditto.
4629 * solib-spu.c: Ditto.
4630 * solib-sunos.c: Ditto.
4631 * solib-svr4.c: Ditto.
4632 * solist.h: Ditto.
4633 * sol-thread.c: Ditto.
4634 * somread.c: Ditto.
4635 * source.c: Ditto.
4636 * source.h: Ditto.
4637 * sparc64-linux-tdep.c: Ditto.
4638 * sparc64-tdep.c: Ditto.
4639 * sparc-linux-nat.c: Ditto.
4640 * sparc-linux-tdep.c: Ditto.
4641 * sparc-sol2-nat.c: Ditto.
4642 * sparc-sol2-tdep.c: Ditto.
4643 * sparc-tdep.c: Ditto.
4644 * sparc-tdep.h: Ditto.
4645 * spu-tdep.c: Ditto.
4646 * stabsread.c: Ditto.
4647 * stabsread.h: Ditto.
4648 * stack.c: Ditto.
4649 * symfile.c: Ditto.
4650 * symfile.h: Ditto.
4651 * symmisc.c: Ditto.
4652 * symtab.c: Ditto.
4653 * symtab.h: Ditto.
4654 * target.c: Ditto.
4655 * target-descriptions.c: Ditto.
4656 * target-descriptions.h: Ditto.
4657 * target.h: Ditto.
4658 * target-memory.c: Ditto.
4659 * terminal.h: Ditto.
4660 * thread.c: Ditto.
4661 * top.c: Ditto.
4662 * tracepoint.c: Ditto.
4663 * tracepoint.h: Ditto.
4664 * trad-frame.h: Ditto.
4665 * typeprint.c: Ditto.
4666
581e13c1
MS
46672011-01-11 Michael Snyder <msnyder@vmware.com>
4668
4669 * ui-file.c: Comment cleanup, mostly periods and spaces.
4670 * ui-file.h: Ditto.
4671 * ui-out.c: Ditto.
4672 * ui-out.h: Ditto.
4673 * utils.c: Ditto.
4674 * v850-tdep.c: Ditto.
4675 * valarith.c: Ditto.
4676 * valops.c: Ditto.
4677 * valprint.c: Ditto.
4678 * valprint.h: Ditto.
4679 * value.c: Ditto.
4680 * value.h: Ditto.
4681 * varobj.c: Ditto.
4682 * varobj.h: Ditto.
4683 * vax-tdep.c: Ditto.
4684 * vec.c: Ditto.
4685 * vec.h: Ditto.
4686 * version.h: Ditto.
4687 * windows-nat.c: Ditto.
4688 * windows-tdep.c: Ditto.
4689 * xcoffread.c: Ditto.
4690 * xcoffsolib.c: Ditto.
4691 * xml-support.c: Ditto.
4692 * xstormy16-tdep.c: Ditto.
4693 * xtensa-tdep.c: Ditto.
4694 * xtensa-tdep.h: Ditto.
4695
90e4670f
TJB
46962011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4697
4698 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
4699 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
4700
e09342b5
TJB
47012011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4702 Thiago Jung Bauermann <bauerman@br.ibm.com>
4703
4704 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 4705 * breakpoint.h
e09342b5
TJB
4706 (struct breakpoint_ops) <resources_needed>: New method.
4707 Initialize to NULL in all existing breakpoint_ops instances.
4708 (struct breakpoint) <exact>: New field.
4709 (target_exact_watchpoints): Declare external global.
4710 * breakpoint.c (target_exact_watchpoints): New global flag.
4711 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
4712 b->enable_state to bp_enabled before calling
4713 hw_watchpoint_used_count.
4714 (hw_watchpoint_used_count): Iterate over all bp_locations in a
4715 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
4716 if available.
4717 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
4718 if the watchpoint is exact.
4719 (resources_needed_watchpoint): New function.
4720 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
4721 (watch_command_1): Set b->exact if the user asked for an exact
4722 watchpoint and one can be set.
4723 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
4724 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
4725 the user asks for an exact watchpoint and one can be set. Return
4726 number of needed debug registers to watch the expression.
4727 * gdbtypes.c (is_scalar_type): New function, based on
4728 valprint.c:scalar_type_p.
4729 (is_scalar_type_recursive): New function.
4730 * gdbtypes.h (is_scalar_type_recursive): Declare.
4731 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
4732 handle regions when ranged watchpoints are available.
4733 (create_watchpoint_request): New function.
4734 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
4735 create_watchpoint_request.
4736 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
4737 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
4738 `set powerpc' and `show powerpc' commands.
4739 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4740 Mention documentation comment in the target macro.
4741 (target_region_ok_for_hw_watchpoint): Document return value.
4742
9fa40276
TJB
47432011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4744
4745 * breakpoint.c (update_watchpoint): Decide on using a software or
4746 hardware watchpoint after the bp_locations are created.
4747
77b06cd7
TJB
47482010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4749
4750 Convert hardware watchpoints to use breakpoint_ops.
4751 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
4752 <insert_location>: ... this. Return int instead of void.
4753 Accept pointer to struct bp_location instead of pointer to
4754 struct breakpoint. Adapt all implementations.
f2eb0bc8 4755 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
4756 <remove_location>: ... this. Accept pointer to struct bp_location
4757 instead of pointer to struct breakpoint. Adapt all implementations.
4758 * breakpoint.c (insert_catchpoint): Delete function.
4759 (insert_bp_location): Call the watchpoint or catchpoint's
4760 breakpoint_ops.insert method.
4761 (remove_breakpoint_1): Call the watchpoint or catchpoint's
4762 breakpoint_ops.remove method.
4763 (insert_watchpoint, remove_watchpoint): New functions.
4764 (watchpoint_breakpoint_ops): New structure.
4765 (watch_command_1): Initialize the OPS field.
4766 * inf-child.c (inf_child_insert_fork_catchpoint)
4767 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
4768 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
4769 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
4770 Delete functions.
4771 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
4772 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
4773 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
4774 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
4775 * target.c (update_current_target): Change default implementation of
4776 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
4777 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
4778 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
4779 to_set_syscall_catchpoint to return_one.
4780 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
4781 (debug_to_insert_exec_catchpoint): Report return value.
4782 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
4783 (to_insert_exec_catchpoint): Change declaration to return int instead
4784 of void.
4785
9b20d036
MS
47862011-01-11 Michael Snyder <msnyder@vmware.com>
4787
4788 * arm-tdep.c: Internationalization.
4789 * c-lang.c: Ditto.
4790 * charset.c: Ditto.
4791 * fork-child.c: Ditto.
4792 * nto-procfs.c: Ditto.
4793 * ppc-sysv-tdep.c: Ditto.
4794 * procfs.c: Ditto.
4795 * remote-mips.c: Ditto.
4796 * remote.c: Ditto.
4797 * rs6000-nat.c: Ditto.
4798 * rs6000-tdep.c: Ditto.
4799 * target.c: Ditto.
4800 * valops.c: Ditto.
4801 * value.c: Ditto.
4802 * xml-support.c: Ditto.
4803 * mi/mi-cmd-break.c: Ditto.
4804 * mi/mi-cmd-var.c: Ditto.
4805 * mi/mi-interp.c: Ditto.
4806 * mi/mi-main.c: Ditto.
4807
dae477fe
AB
48082011-01-11 Andrew Burgess <aburgess@broadcom.com>
4809
4810 * remote-sim.c (gdbsim_store_register): Update API to
4811 sim_store_register to check more error conditions.
4812
0df8b418
MS
48132011-01-10 Michael Snyder <msnyder@vmware.com>
4814
4815 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
4816 * nto-tdep.c: Ditto.
4817 * nto-tdep.h: Ditto.
4818 * objc-exp.y: Ditto.
4819 * objc-lang.c: Ditto.
4820 * objfiles.c: Ditto.
4821 * objfiles.h: Ditto.
4822 * observer.c: Ditto.
4823 * opencl-lang.c: Ditto.
4824 * osabi.c: Ditto.
4825 * parse.c: Ditto.
4826 * parser-defs.h: Ditto.
4827 * p-exp.y: Ditto.
4828 * p-lang.c: Ditto.
4829 * posix-hdep.c: Ditto.
4830 * ppcbug-rom.c: Ditto.
4831 * ppc-linux-nat.c: Ditto.
4832 * ppc-linux-tdep.c: Ditto.
4833 * ppc-linux-tdep.h: Ditto.
4834 * ppcnbsd-tdep.c: Ditto.
4835 * ppcobsd-tdep.c: Ditto.
4836 * ppcobsd-tdep.h: Ditto.
4837 * ppc-sysv-tdep.c: Ditto.
4838 * ppc-tdep.h: Ditto.
4839 * printcmd.c: Ditto.
4840 * proc-abi.c: Ditto.
4841 * proc-flags.c: Ditto.
4842 * procfs.c: Ditto.
4843 * proc-utils.h: Ditto.
4844 * progspace.h: Ditto.
4845 * prologue-value.c: Ditto.
4846 * prologue-value.h: Ditto.
4847 * psympriv.h: Ditto.
4848 * psymtab.c: Ditto.
4849 * p-typeprint.c: Ditto.
4850 * p-valprint.c: Ditto.
4851 * ravenscar-sparc-thread.c: Ditto.
4852 * ravenscar-thread.c: Ditto.
4853 * ravenscar-thread.h: Ditto.
4854 * record.c: Ditto.
4855 * regcache.c: Ditto.
4856 * regcache.h: Ditto.
4857 * remote.c: Ditto.
4858 * remote-fileio.c: Ditto.
4859 * remote-fileio.h: Ditto.
4860 * remote.h: Ditto.
4861 * remote-m32r-sdi.c: Ditto.
4862 * remote-mips.c: Ditto.
4863 * remote-sim.c: Ditto.
4864 * rs6000-aix-tdep.c: Ditto.
4865 * rs6000-nat.c: Ditto.
4866 * rs6000-tdep.c: Ditto.
4867
0d7a18f7
MS
48682011-01-10 Michael Snyder <msnyder@vmware.com>
4869
4870 * charset.c (validate): Internationalization.
4871 * coffread.c (read_one_sym): Ditto.
4872 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
4873 * h8300-tdep.c (H8300_extract_return_value): Ditto.
4874 * inflow.c (new_tty): Ditto.
4875 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
4876 * m32c-tdep.c (m32c_return_value): Ditto.
4877 * mep-tdep.c (mep_store_return_value): Ditto.
4878 * score-tdep.c (score7_fetch_insn): Ditto.
4879 * ser-mingw.c (pipe_windows_open): Ditto.
4880 * sh64-tdep.c (sh64_extract_return_value): Ditto.
4881 * spu-tdep.c (spu_register_type): Ditto.
4882 * tracepoint.c (trace_find_command): Ditto.
4883 * valarith.c (value_pos): Ditto.
4884
9a153e0b
JB
48852011-01-10 Joel Brobecker <brobecker@adacore.com>
4886
4887 * ada-valprint.c (printstr): Minor comment reformatting.
4888
35ecd2d6
MS
48892011-01-08 Michael Snyder <msnyder@vmware.com>
4890
4891 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
4892 markup.
4893
1777feb0
MS
48942011-01-08 Michael Snyder <msnyder@vmware.com>
4895
4896 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
4897 * hppa-hpux-tdep.c: Ditto.
4898 * hppa-linux-nat.c: Ditto.
4899 * hppa-linux-tdep.c: Ditto.
4900 * hppanbsd-tdep.c: Ditto.
4901 * hppa-tdep.c: Ditto.
4902 * hppa-tdep.h: Ditto.
4903 * hpux-thread.c: Ditto.
4904 * i386-cygwin-tdep.c: Ditto.
4905 * i386-darwin-nat.c: Ditto.
4906 * i386gnu-nat.c: Ditto.
4907 * i386-linux-nat.c: Ditto.
4908 * i386-linux-tdep.c: Ditto.
4909 * i386-nat.c: Ditto.
4910 * i386-nat.h: Ditto.
4911 * i386nbsd-tdep.c: Ditto.
4912 * i386-sol2-nat.c: Ditto.
4913 * i386-stub.c: Ditto.
4914 * i386-tdep.c: Ditto.
4915 * i386-tdep.h: Ditto.
4916 * i387-tdep.c: Ditto.
4917 * ia64-linux-nat.c: Ditto.
4918 * ia64-linux-tdep.c: Ditto.
4919 * ia64-tdep.c: Ditto.
4920 * infcall.c: Ditto.
4921 * infcall.h: Ditto.
4922 * infcmd.c: Ditto.
4923 * inferior.c: Ditto.
4924 * inferior.h: Ditto.
4925 * infloop.c: Ditto.
4926 * inflow.c: Ditto.
4927 * infrun.c: Ditto.
4928 * interps.c: Ditto.
4929 * interps.h: Ditto.
4930 * iq2000-tdep.c: Ditto.
4931 * irix5-nat.c: Ditto.
4932 * jit.c: Ditto.
4933 * jit.h: Ditto.
4934 * jv-exp.y: Ditto.
4935 * jv-lang.c: Ditto.
4936 * jv-lang.h: Ditto.
4937 * jv-typeprint.c: Ditto.
4938 * jv-valprint.c: Ditto.
4939 * language.c: Ditto.
4940 * language.h: Ditto.
4941 * linespec.c: Ditto.
4942 * linux-fork.c: Ditto.
4943 * linux-nat.c: Ditto.
4944 * linux-thread-db.c: Ditto.
4945 * lm32-tdep.c: Ditto.
4946
025bb325
MS
49472011-01-08 Michael Snyder <msnyder@vmware.com>
4948
4949 * m2-exp.y: Comment cleanup, mostly periods and spaces.
4950 * m2-lang.c: Ditto.
4951 * m2-typeprint.c: Ditto.
4952 * m2-valprint.c: Ditto.
4953 * m32c-tdep.c: Ditto.
4954 * m32r-linux-nat.c: Ditto.
4955 * m32r-rom.c: Ditto.
4956 * m32r-tdep.c: Ditto.
4957 * m32r-tdep.h: Ditto.
4958 * m68hc11-tdep.c: Ditto.
4959 * m58klinux-nat.c: Ditto.
4960 * m68k-tdep.c: Ditto.
4961 * m88k-tdep.c: Ditto.
4962 * m88k-tdep.h: Ditto.
4963 * machoread.c: Ditto.
4964 * macrocmd.c: Ditto.
4965 * macroexp.c: Ditto.
4966 * macrotab.c: Ditto.
4967 * main.c: Ditto.
4968 * maint.c: Ditto.
4969 * mdebugread.c: Ditto.
4970 * mdebugread.h: Ditto.
4971 * memattr.c: Ditto.
4972 * memattr.h: Ditto.
4973 * memory-map.h: Ditto.
4974 * mep-tdep.c: Ditto.
4975 * microblaze-rom.c: Ditto.
4976 * microblaze-tdep.c: Ditto.
4977 * minsyms.c: Ditto.
4978 * mips-irix-tdep.c: Ditto.
4979 * mips-linux-nat.c: Ditto.
4980 * mips-linux-tdep.c: Ditto.
4981 * mips-linux-tdep.h: Ditto.
4982 * mipsnbsd-nat.c: Ditto.
4983 * mipsnbsd-tdep.c: Ditto.
4984 * mipsread.c: Ditto.
4985 * mips-tdep.c: Ditto.
4986 * mips-tdep.h: Ditto.
4987 * mn10300-linux-tdep.c: Ditto.
4988 * mn10300-tdep.c: Ditto.
4989 * mn10300-tdep.h: Ditto.
4990 * monitor.c: Ditto.
4991 * monitor.h: Ditto.
4992 * moxie-tdep.c: Ditto.
4993 * moxie-tdep.h: Ditto.
4994 * mt-tdep.c: Ditto.
4995
1642781b
MF
49962011-01-08 Mike Frysinger <vapier@gentoo.org>
4997
4998 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
4999
394b0adb
JB
50002011-01-08 Robert Millan <rmh@gnu.org>
5001
5002 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5003
b670013c
MS
50042011-01-07 Michael Snyder <msnyder@vmware.com>
5005
5006 * charset.c (_initialize_charset): Fix typo in string.
5007
a743e542
MS
50082011-01-07 Michael Snyder <msnyder@vmware.com>
5009
5010 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
5011 for i18n.
f2eb0bc8 5012 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
5013 Split line so that operator goes to beginning of line.
5014 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
5015 assignment out of if statement.
5016
0963b4bd
MS
50172011-01-07 Michael Snyder <msnyder@vmware.com>
5018
5019 * ada-lang.c: Comment cleanup, mostly periods and spaces.
5020 * ada-lang.h: Ditto.
5021 * ada-tasks.c: Ditto.
5022 * ada-valprint.c: Ditto.
5023 * aix-threads.c: Ditto.
5024 * alpha-linux-nat.c: Ditto.
5025 * alpha-linux-tdep.c: Ditto.
5026 * alpha-mdebug-tdep.c: Ditto.
5027 * alpha-nat.c: Ditto.
5028 * alpha-osf1-tdep.c: Ditto.
5029 * alpha-tdep.c: Ditto.
5030 * alphabsd-nat.c: Ditto.
5031 * alphabsd-tdep.c: Ditto.
5032 * amd64-darwin-tdep.c: Ditto.
5033 * amd64-linux-nat.c: Ditto.
5034 * amd64-linux-tdep.c: Ditto.
5035 * amd64-sol2-tdep.c: Ditto.
5036 * amd64-tdep.c: Ditto.
5037 * amd64-fbsd-tdep.c: Ditto.
5038 * amd64-nbsd-tdep.c: Ditto.
5039 * amd64-obsd-tdep.c: Ditto.
5040 * amd64-linux-nat.c: Ditto.
5041 * amd64-linux-tdep.c: Ditto.
5042 * arm-tdep.c: Ditto.
5043 * arm-tdep.h: Ditto.
5044 * armnbsd-nat.c: Ditto.
5045 * avr-tdep.c: Ditto.
5046 * bfin-tdep.c: Ditto.
5047 * bsd-kvm.c: Ditto.
5048 * c-typeprintc: Ditto.
5049 * c-valprint.c: Ditto.
5050 * coff-pe-read.h: Ditto.
5051 * coffreead.c: Ditto.
5052 * cris-tdep.c: Ditto.
5053 * d-lang.c: Ditto.
5054 * darwin-nat-info.c: Ditto.
5055 * darwin-nat.c: Ditto.
5056 * dbug-rom.c: Ditto.
5057 * dbxread.c: Ditto.
5058 * dcache.c: Ditto.
5059 * dcache.h: Ditto.
5060 * dec-thread.c: Ditto.
5061 * defs.h: Ditto.
5062 * demangle.c: Ditto.
5063 * dicos-tdep.c: Ditto.
5064 * dictionary.c: Ditto.
5065 * dictionary.h: Ditto.
5066 * dink32-rom.c: Ditto.
5067 * disasm.c: Ditto.
5068 * doublest.c: Ditto.
5069 * dsrec.c: Ditto.
5070 * dummy-frame.c: Ditto.
5071 * dwarf2-frame.c: Ditto.
5072 * dwarf2expr.c: Ditto.
5073 * dwarf2loc.c: Ditto.
5074 * dwarf2read.c: Ditto.
5075 * elfread.c: Ditto.
5076 * environ.c: Ditto.
5077 * eval.c: Ditto.
5078 * event-top.h: Ditto.
5079 * exceptions.c: Ditto.
5080 * exceptions.h: Ditto.
5081 * exec.c: Ditto.
5082 * expprint.c: Ditto.
5083 * expression.h: Ditto.
5084 * f-exp.y: Ditto.
5085 * f-lang.c: Ditto.
5086 * f-lang.h: Ditto.
5087 * f-typeprint.c: Ditto.
5088 * f-valprint.c: Ditto.
5089 * fbsd-nat.c: Ditto.
5090 * findvar.c: Ditto.
5091 * fork-child.c: Ditto.
5092 * frame.c: Ditto.
5093 * frame.h: Ditto.
5094 * frv-linux-tdep.c: Ditto.
5095 * frv-tdep.c: Ditto.
5096 * gcore.c: Ditto.
5097 * gdb-stabs.h: Ditto.
5098 * gdb_assert.h: Ditto.
5099 * gdb_string.h: Ditto.
5100 * gdb_thread_db.h: Ditto.
5101 * gdb_wait.h: Ditto.
5102 * gdbarch.sh: Ditto.
5103 * gdbcore.h: Ditto.
5104 * gdbthread.h: Ditto.
5105 * gdbtypes.c: Ditto.
5106 * gdbtypes.h: Ditto.
5107 * gnu-nat.c: Ditto.
5108 * gnu-nat.h: Ditto.
5109 * gnu-v2-abi.c: Ditto.
5110 * gnu-v3-abi.c: Ditto.
5111 * go32-nat.c: Ditto.
5112 * gdbarch.c: Regenerate.
5113 * gdbarch.h: Regenerate.
5114
ac74f770
MS
51152011-01-07 Michael Snyder <msnyder@vmware.com>
5116
5117 * ax-gdb.c: Adjust some long output strings.
5118 * breakpoint.c: Ditto.
5119 * charset.c: Ditto.
5120 * cp-abi.c: Ditto.
5121 * infcall.c: Ditto.
5122 * infrun.c: Ditto.
5123 * linux-nat.c: Ditto.
5124 * solib-pa64.c: Ditto.
5125 * solib-som.c: Ditto.
5126
d8e22779
TT
51272011-01-06 Tom Tromey <tromey@redhat.com>
5128
5129 PR python/12367:
5130 * NEWS: Add item.
5131 * python/python.c (GdbMethods): Add "newest_frame" method.
5132 * python/python-internal.h (gdbpy_newest_frame): Declare.
5133 * python/py-frame.c (gdbpy_newest_frame): New function.
5134
a255712f
PP
51352010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5136
5137 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
5138 * jit.c (jit_debug): New variable.
5139 (show_jit_debug): New function.
5140 (struct target_buffer): Use ULONGEST.
5141 (bfd_open_from_target_memory): Likewise.
5142 (jit_register_code, jit_inferior_init): Add debug output.
5143 (_initialize_jit): Register "debug jit" command.
5144
ccfc3d6e
TT
51452011-01-06 Tom Tromey <tromey@redhat.com>
5146
5147 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
5148 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
5149 and ARCH_FRAME.
5150
57126e4a
TT
51512011-01-06 Tom Tromey <tromey@redhat.com>
5152
5153 * python/py-frame.c (frapy_block): Use get_frame_block.
5154
16dfc9ce
JB
51552011-01-06 Joel Brobecker <brobecker@adacore.com>
5156
5157 Do not stop on SIGPRIO signals by default
5158 * infrun.c (_initialize_infrun): Unset signal_stop and
5159 signal_print for TARGET_SIGNAL_PRIO.
5160
b1ce2347
JB
51612011-01-06 Joel Brobecker <brobecker@adacore.com>
5162
5163 * ada-tasks.c: Fix style violation in comment.
5164
8f7e195f
JB
51652011-01-06 Joel Brobecker <brobecker@adacore.com>
5166
5167 * linespec.c (decode_compound, find_method): Remove trailing \n
5168 at end of error string.
5169 * solib-irix.c (irix_current_sos): Likewise.
5170 * varobj.c (uninstall_variable): Likewise.
5171
e9bdf92c
JB
51722011-01-06 Joel Brobecker <brobecker@adacore.com>
5173
5174 * copyright.py: New script.
5175 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
5176 Launch emacs without exec'ing. Call copyright.py afterwards.
5177
3e43a32a
MS
51782011-01-05 Michael Snyder <msnyder@vmware.com>
5179
5180 * addrmap.c: Shorten lines of >= 80 columns.
5181 * arch-utils.c: Ditto.
5182 * arch-utils.h: Ditto.
5183 * ax-gdb.c: Ditto.
5184 * ax-general.c: Ditto.
5185 * bcache.c: Ditto.
5186 * blockframe.c: Ditto.
5187 * breakpoint.c: Ditto.
5188 * buildsym.c: Ditto.
5189 * c-lang.c: Ditto.
5190 * c-typeprint.c: Ditto.
5191 * charset.c: Ditto.
5192 * coffread.c: Ditto.
5193 * command.h: Ditto.
5194 * corelow.c: Ditto.
5195 * cp-abi.c: Ditto.
5196 * cp-namespace.c: Ditto.
5197 * cp-support.c: Ditto.
5198 * dbug-rom.c: Ditto.
5199 * dbxread.c: Ditto.
5200 * defs.h: Ditto.
5201 * dfp.c: Ditto.
5202 * dfp.h: Ditto.
5203 * dictionary.c: Ditto.
5204 * disasm.c: Ditto.
5205 * doublest.c: Ditto.
5206 * dwarf2-frame.c: Ditto.
5207 * dwarf2expr.c: Ditto.
5208 * dwarf2loc.c: Ditto.
5209 * dwarf2read.c: Ditto.
5210 * elfread.c: Ditto.
5211 * eval.c: Ditto.
5212 * event-loop.c: Ditto.
5213 * event-loop.h: Ditto.
5214 * exceptions.h: Ditto.
5215 * exec.c: Ditto.
5216 * expprint.c: Ditto.
5217 * expression.h: Ditto.
5218 * f-lang.c: Ditto.
5219 * f-valprint.c: Ditto.
5220 * findcmd.c: Ditto.
5221 * frame-base.c: Ditto.
5222 * frame-unwind.c: Ditto.
5223 * frame-unwind.h: Ditto.
5224 * frame.c: Ditto.
5225 * frame.h: Ditto.
5226 * gcore.c: Ditto.
5227 * gdb-stabs.h: Ditto.
5228 * gdb_assert.h: Ditto.
5229 * gdb_dirent.h: Ditto.
5230 * gdb_obstack.h: Ditto.
5231 * gdbcore.h: Ditto.
5232 * gdbtypes.c: Ditto.
5233 * gdbtypes.h: Ditto.
5234 * inf-ttrace.c: Ditto.
5235 * infcall.c: Ditto.
5236 * infcmd.c: Ditto.
5237 * inflow.c: Ditto.
5238 * infrun.c: Ditto.
5239 * inline-frame.h: Ditto.
5240 * language.c: Ditto.
5241 * language.h: Ditto.
5242 * libunwind-frame.c: Ditto.
5243 * libunwind-frame.h: Ditto.
5244 * linespec.c: Ditto.
5245 * linux-nat.c: Ditto.
5246 * linux-nat.h: Ditto.
5247 * linux-thread-db.c: Ditto.
5248 * machoread.c: Ditto.
5249 * macroexp.c: Ditto.
5250 * macrotab.c: Ditto.
5251 * main.c: Ditto.
5252 * maint.c: Ditto.
5253 * mdebugread.c: Ditto.
5254 * memattr.c: Ditto.
5255 * minsyms.c: Ditto.
5256 * monitor.c: Ditto.
5257 * monitor.h: Ditto.
5258 * objfiles.c: Ditto.
5259 * objfiles.h: Ditto.
5260 * osabi.c: Ditto.
5261 * p-typeprint.c: Ditto.
5262 * p-valprint.c: Ditto.
5263 * parse.c: Ditto.
5264 * printcmd.c: Ditto.
5265 * proc-events.c: Ditto.
5266 * procfs.c: Ditto.
5267 * progspace.c: Ditto.
5268 * progspace.h: Ditto.
5269 * psympriv.h: Ditto.
5270 * psymtab.c: Ditto.
5271 * record.c: Ditto.
5272 * regcache.c: Ditto.
5273 * regcache.h: Ditto.
5274 * remote-fileio.c: Ditto.
5275 * remote.c: Ditto.
5276 * ser-mingw.c: Ditto.
5277 * ser-tcp.c: Ditto.
5278 * ser-unix.c: Ditto.
5279 * serial.c: Ditto.
5280 * serial.h: Ditto.
5281 * solib-frv.c: Ditto.
5282 * solib-irix.c: Ditto.
5283 * solib-osf.c: Ditto.
5284 * solib-pa64.c: Ditto.
5285 * solib-som.c: Ditto.
5286 * solib-sunos.c: Ditto.
5287 * solib-svr4.c: Ditto.
5288 * solib-target.c: Ditto.
5289 * solib.c: Ditto.
5290 * somread.c: Ditto.
5291 * source.c: Ditto.
5292 * stabsread.c: Ditto.
5293 * stabsread.c: Ditto.
5294 * stack.c: Ditto.
5295 * stack.h: Ditto.
5296 * symfile-mem.c: Ditto.
5297 * symfile.c: Ditto.
5298 * symfile.h: Ditto.
5299 * symmisc.c: Ditto.
5300 * symtab.c: Ditto.
5301 * symtab.h: Ditto.
5302 * target-descriptions.c: Ditto.
5303 * target-memory.c: Ditto.
5304 * target.c: Ditto.
5305 * target.h: Ditto.
5306 * terminal.h: Ditto.
5307 * thread.c: Ditto.
5308 * top.c: Ditto.
5309 * tracepoint.c: Ditto.
5310 * tracepoint.h: Ditto.
5311 * ui-file.c: Ditto.
5312 * ui-file.h: Ditto.
5313 * ui-out.h: Ditto.
5314 * user-regs.c: Ditto.
5315 * user-regs.h: Ditto.
5316 * utils.c: Ditto.
5317 * valarith.c: Ditto.
5318 * valops.c: Ditto.
5319 * valprint.c: Ditto.
5320 * valprint.h: Ditto.
5321 * value.c: Ditto.
5322 * varobj.c: Ditto.
5323 * varobj.h: Ditto.
5324 * vec.h: Ditto.
5325 * xcoffread.c: Ditto.
5326 * xcoffsolib.c: Ditto.
5327 * xcoffsolib.h: Ditto.
5328 * xml-syscall.c: Ditto.
5329 * xml-tdesc.c: Ditto.
5330
9a2b4c1b
MS
53312011-01-05 Michael Snyder <msnyder@vmware.com>
5332
5333 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
5334 * cli/cli-decode.c: Ditto.
5335 * cli/cli-dump.c: Ditto.
5336 * cli/cli-logging.c: Ditto.
5337 * cli/cli-script.c: Ditto.
5338 * cli/cli-setshow.c: Ditto.
5339 * common/signals.c: Ditto.
5340 * mi/mi-cmd-break.c: Ditto.
5341 * mi/mi-cmd-disas.c: Ditto.
5342 * mi/mi-cmd-stack.c: Ditto.
5343 * mi/mi-cmd-var.c: Ditto.
5344 * mi/mi-cmds.c: Ditto.
5345 * mi/mi-common.h: Ditto.
5346 * mi/mi-console.c: Ditto.
5347 * mi/mi-interp.c: Ditto.
5348 * mi/mi-main.c: Ditto.
5349 * osf-share/cma_attr.c: Ditto.
5350 * osf-share/cma_deb_core.h: Ditto.
5351 * osf-share/cma_debug_client.h: Ditto.
5352 * osf-share/cma_handle.h: Ditto.
5353 * osf-share/cma_mutex.h: Ditto.
5354 * osf-share/cma_stack_int.h: Ditto.
5355 * osf-share/cma_tcb_defs.h: Ditto.
5356 * python/py-auto-load.c: Ditto.
5357 * python/py-breakpoint.c: Ditto.
5358 * python/py-cmd.c: Ditto.
5359 * python/py-frame.c: Ditto.
5360 * python/py-objfile.c: Ditto.
5361 * python/py-param.c: Ditto.
5362 * python/py-progspace.c: Ditto.
5363 * python/py-symbol.c: Ditto.
5364 * python/py-value.c: Ditto.
5365 * python/python-internal.h: Ditto.
5366 * python/python.c: Ditto.
5367 * tui/tui-data.c: Ditto.
5368 * tui/tui-disasm.c: Ditto.
5369 * tui/tui-hooks.c: Ditto.
5370 * tui/tui-io.c: Ditto.
5371 * tui/tui-layout.c: Ditto.
5372 * tui/tui-regs.c: Ditto.
5373 * tui/tui-source.c: Ditto.
5374 * tui/tui-stack.c: Ditto.
5375 * tui/tui-win.c: Ditto.
5376 * tui/tui-windata.c: Ditto.
5377 * tui/tui-winsource.c: Ditto.
5378
44944448
JB
53792011-01-05 Joel Brobecker <brobecker@adacore.com>
5380
5381 * configure.ac, gdb.1: Copyright year update.
5382
ebedcab5
JK
53832011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5384
5385 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
5386 this_pc_in_block, morestack_msym and morestack_name. Check for
5387 "__morestack" minimal symbol there.
5388
e5cc9f32
JB
53892011-01-03 Joel Brobecker <brobecker@adacore.com>
5390
5391 * symfile.c (find_sym_fns): Add call to dont_repeat.
5392
7b6bb8da
JB
53932011-01-01 Joel Brobecker <brobecker@adacore.com>
5394
5395 Copyright year update in most files (performed by copyright.sh).
5396
71ce852c
JB
53972011-01-01 Joel Brobecker <brobecker@adacore.com>
5398
5399 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 5400
c3c1ebe8 5401For older changes see ChangeLog-2010.
c906108c
SS
5402\f
5403Local Variables:
5404mode: change-log
5405left-margin: 8
5406fill-column: 74
5407version-control: never
57da7796 5408coding: utf-8
c906108c 5409End:
This page took 1.704102 seconds and 4 git commands to generate.