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