]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
2011-02-26 Michael Snyder <msnyder@vmware.com>
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f2c4ead5
MS
12011-02-26 Michael Snyder <msnyder@vmware.com>
2
8c814cdd
MS
3 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
4 with a local variable of the same name.
5
6d5e094a 6 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 7 param with a local variable of the same name.
6d5e094a 8 (i387_supply_xsave): Ditto.
e5b3d7d6 9
5eee517d
MS
10 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
11 that it does not shadow a function parameter.
12
8fbf6b93
MS
13 * i386-nat.c (i386_length_and_rw_bits): Document that case
14 statement is meant to fall through.
15
cb969d61
MS
16 * expprint.c (dump_subexp_body_standard): Document that case
17 statement is meant to fall through.
18
f2c4ead5
MS
19 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
20 dead if statement. Condition can't be false.
21
b021a221
MS
222011-02-25 Michael Snyder <msnyder@vmware.com>
23
24 * arm-tdep.c: Fix typos in comments.
25 * bsd-uthread.c: Ditto.
26 * completer.c: Ditto.
27 * corelow.c: Ditto.
28 * cp-namespace.c: Ditto.
29 * cp-support.c: Ditto.
30 * cris-tdep.c: Ditto.
31 * dbxread.c: Ditto.
32 * dwarf2read.c: Ditto.
33 * frame.h: Ditto.
34 * gdbtypes.h: Ditto.
35 * inferior.h: Ditto.
36 * mdebugread.c: Ditto.
37 * mips-tdep.c: Ditto.
38 * ppc-linux-nat.c: Ditto.
39 * ppc-linux-tdep.c: Ditto.
40 * printcmd.c: Ditto.
41 * sol-thread.c: Ditto.
42 * solib-frv.c: Ditto.
43 * solist.h: Ditto.
44 * sparc64-tdep.c: Ditto.
45 * spu-tdep.c: Ditto.
46 * stabsread.c: Ditto.
47 * symfile.c: Ditto.
48 * valops.c: Ditto.
49 * varobj.c: Ditto.
50 * vax-nat.c: Ditto.
51 * python/py-block.c: Ditto.
52 * python/py-symbol.c: Ditto.
53 * python/py-symtab.c: Ditto.
54 * python/py-value.c: Ditto.
55 * tui/tui-win.c: Ditto.
56
c82c0b55
MS
572011-02-25 Michael Snyder <msnyder@vmware.com>
58
59 * inferior.c (print_inferior): Accept a string instead of an int
60 for requested_inferiors, and use get_number_or_range to parse it.
61 (info_inferiors_command): Pass args string to print_inferior.
62 (initialize_inferiors): Change help string for info inferiors.
63 * inferior.h (print_inferior): Export prototype change.
64
ee00cd23
TT
652011-02-25 Tom Tromey <tromey@redhat.com>
66
67 * common/ax.def (invalid2): Set to 0x31.
68
0502ed8c
JK
692011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
70
71 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
72 L and plongest.
73 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
74 use L and plongest.
75 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
76
2c9de912
MS
772011-02-24 Michael Snyder <msnyder@vmware.com>
78
79 * Makefile.in (clean): Make clean should remove generated files
80 observer.h and observer.inc.
81
a04b0428
JB
822011-02-24 Joel Brobecker <brobecker@adacore.com>
83
84 Revert the following patch (not approved yet):
85 2011-02-21 Hui Zhu <teawater@gmail.com>
86 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
87 * ax-gdb.c (gen_printf_expr_callback): New function.
88 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
89 * ax-general.c (ax_memcpy): New function.
90 (ax_print): Handle "printf".
91 (ax_reqs): Ditto.
92 * ax.h (ax_memcpy): Forward declare.
93 * common/ax.def (invalid2): Removed.
94 (printf): New entry.
95 * printcmd.c (printcmd.h): New include.
96 (string_printf): New function.
97 (ui_printf): Removed.
98 (printf_command): Remove static. Call string_printf.
99 (eval_command): Call string_printf.
100 * printcmd.h: New file.
101 * tracepoint.c (validate_actionline,
102 encode_actions_1): handle printf_command.
103
2b52013f
TT
1042011-02-23 Tom Tromey <tromey@redhat.com>
105
106 * ax-general.c (ax_pick): Add missing newline.
107
e5a67952
MS
1082011-02-23 Michael Snyder <msnyder@vmware.com>
109
110 * breakpoint.c (breakpoint_1): Change first argument from an int
111 to a char pointer, so that the function now accepts a list of
112 breakpoints rather than just one. Use new function
113 'number_is_in_list' to implement.
114 (breakpoints_info): Pass char * instead of int to breakpoint_1.
115 (watchpoints_info): Ditto.
116 (tracepoints_info): Ditto.
117 (maintenance_info_breakpoints): Ditto.
118 (_initialize_breakpoint): Update help strings to reflect the fact
119 that these functions can now take more than one argument.
120 * cli/cli-utils.c (number_is_in_list): New function.
121 * cli/cli-utils.h (number_is_in_list): Export.
122
1232011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
124
125 * memattr.c (mem_enable_command): Use get_number_or_range.
126 (mem_disable_command): Ditto.
127 (mem_delete_command): Ditto.
128 (_initialize_mem): Tweak usage message to reflect multiple
129 arguments.
130
6e6fbe60
DE
1312011-02-22 Doug Evans <dje@google.com>
132
133 Add gdb.lookup_global_symbol python function.
134 * NEWS: Add entry.
135 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
136 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
137 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
138
79b97fa8
TT
1392011-02-22 Tom Tromey <tromey@redhat.com>
140
141 * language.c (language_class_name_from_physname): Rename
142 'curr_language' argument to 'lang'; use in body.
143
298f437a
MS
1442011-02-22 Michael Snyder <msnyder@vmware.com>
145
146 * cli/cli-utils.c (number_is_in_list): Check for zero return.
147
b7ea3126
PA
1482011-02-22 Pedro Alves <pedro@codesourcery.com>
149
150 * frame-unwind.h: Fix comment to mention the this frame, not the
151 next.
152
58ee6d60
TT
1532011-02-22 Tom Tromey <tromey@redhat.com>
154
155 * symfile.c (auto_solib_limit): Remove.
156 * symfile.h (auto_solib_limit): Remove.
157
36238dbc
JB
1582011-02-22 Joel Brobecker <brobecker@adacore.com>
159
160 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
161
aea5b279
MS
1622011-02-21 Michael Snyder <msnyder@vmware.com>
163
164 * gdbthread.h (print_thread_info): Change prototype.
165 * thread.c (print_thread_info): Accept char* instead of int for
166 requested_threads argument. Use new function number_is_in_list
167 to determine which threads to list.
168 (info_threads_command): Pass char* to print_thread_info.
169 * cli/cli-utils.c (number_is_in_list): New function.
170 * cli/cli-utils.h (number_is_in_list): Export.
171 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
172 print_thread_info.
173 (print_one_inferior): Ditto.
174 (mi_cmd_list_thread_groups): Ditto.
175
8caa75ee
JK
1762011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
177
178 * common/Makefile.in (CFLAGS): New.
179 (COMPILE): Add $(CFLAGS).
180
ea666128
TT
1812011-02-21 Tom Tromey <tromey@redhat.com>
182
183 * breakpoint.c (catch_syscall_command_1): Fix typo.
184
e9cafbcc
TT
1852011-02-21 Tom Tromey <tromey@redhat.com>
186
187 * reverse.c: Include cli-utils.h.
188 * printcmd.c: Include cli-utils.h.
189 (string_printf): Use skip_spaces.
190 * cli/cli-utils.h: New file.
191 * cli/cli-utils.c: New file.
192 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
193 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
194 * breakpoint.h (get_number, get_number_or_range): Move to
195 cli-utils.h.
196 * breakpoint.c: Include cli-utils.h.
197 (get_number_trailer, get_number, get_number_or_range)
198 (ep_skip_leading_whitespace): Move to cli-utils.c.
199 (create_breakpoint_sal, find_condition_and_thread)
200 (decode_static_tracepoint_spec, watch_command_1)
201 (watch_maybe_just_location, ep_parse_optional_if_clause)
202 (catch_fork_command_1, catch_exec_command_1)
203 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
204 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
205 (SUBDIR_CLI_SRCS): Add cli-utils.c.
206 (HFILES_NO_SRCDIR): Add cli-utils.h.
207 (cli-utils.o): New target.
208
f67fd822
PM
2092011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
210
211 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
212 before calling discard_all_inferiors.
213
c9def01d
UW
2142011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
215
216 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
217 (struct builtin_opencl_type): Remove.
218 (builtin_opencl_type): Change return type to "struct type **".
219 (lookup_opencl_vector_type): Update caller.
220 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
221 (build_opencl_types): Install plain array of "struct type *"
222 instead of "struct builtin_opencl_type".
223
e3039479
UW
2242011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
225 Ulrich Weigand <uweigand@de.ibm.com>
226
227 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
228 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
229 (struct arm_linux_hwbp_cap): New type.
230 (arm_linux_get_hwbp_cap): New function.
231 (arm_linux_get_hw_breakpoint_count): Likewise.
232 (arm_linux_get_hw_watchpoint_count): Likewise.
233 (arm_linux_can_use_hw_breakpoint): Likewise.
234 (arm_hwbp_type): New type.
235 (arm_hwbp_control_t): Likewise.
236 (struct arm_linux_hw_breakpoint): Likewise.
237 (struct arm_linux_thread_points): Likewise.
238 (arm_threads): New global variable.
239 (arm_linux_find_breakpoints_by_tid): New function.
240 (arm_hwbp_control_initialize): Likewise.
241 (arm_hwbp_control_is_enabled): Likewise.
242 (arm_hwbp_control_disable): Likewise.
243 (arm_linux_hw_breakpoint_initialize): Likewise.
244 (arm_linux_get_hwbp_type): Likewise.
245 (arm_linux_hw_watchpoint_initialize): Likewise.
246 (arm_linux_hw_breakpoint_equal): Likewise.
247 (arm_linux_insert_hw_breakpoint1): Likewise.
248 (arm_linux_remove_hw_breakpoint1): Likewise.
249 (arm_linux_insert_hw_breakpoint): Likewise.
250 (arm_linux_remove_hw_breakpoint): Likewise.
251 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
252 (arm_linux_insert_watchpoint): Likewise.
253 (arm_linux_remove_watchpoint): Likewise.
254 (arm_linux_stopped_data_address): Likewise.
255 (arm_linux_stopped_by_watchpoint): Likewise.
256 (arm_linux_watchpoint_addr_within_range): Likewise.
257 (arm_linux_new_thread): Likewise.
258 (arm_linux_thread_exit): Likewise.
259 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
260 related target callbacks. Register arm_linux_new_thread and
261 arm_linux_thread_exit.
262 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
263 * arm-tdep.c (arm_pc_is_thumb): Make global.
264 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
265
b5db5dfc
UW
2662011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
267
268 * breakpoint.c (update_watchpoint): Do not attempt to recreate
269 per-frame locations while within a function epilogue.
270
e25b2cfa
PM
2712011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
272
273 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
274 to GNU coding standards.
275
4af53f97
PM
2762011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
277
278 Allow use of mingw native on Windows 95 OS.
e25b2cfa 279 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
280 (ser_windows_close): Only call CancelIo if function exists.
281 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
282 to check for existence of CancelIo function in kernel32 DLL.
283
d0e92d82
HZ
2842011-02-21 Hui Zhu <teawater@gmail.com>
285
286 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
287 * ax-gdb.c (gen_printf_expr_callback): New function.
288 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
289 * ax-general.c (ax_memcpy): New function.
290 (ax_print): Handle "printf".
291 (ax_reqs): Ditto.
292 * ax.h (ax_memcpy): Forward declare.
293 * common/ax.def (invalid2): Removed.
294 (printf): New entry.
295 * printcmd.c (printcmd.h): New include.
296 (string_printf): New function.
297 (ui_printf): Removed.
298 (printf_command): Remove static. Call string_printf.
299 (eval_command): Call string_printf.
300 * printcmd.h: New file.
301 * tracepoint.c (validate_actionline,
302 encode_actions_1): handle printf_command.
303
7d357efd
MS
3042011-02-19 Michael Snyder <msnyder@vmware.com>
305
306 * reverse.c (delete_one_bookmark): Argument is now bookmark
307 id rather than pointer to bookmark struct.
308 (delete_bookmark_command): Use get_number_or_range.
309 (goto_bookmark_command): Parse with get_number instead of strtoul.
310 (bookmark_1): New function. Print info for one bookmark.
311 (bookmarks_info): Use get_number_or_range and bookmark_1.
312
7a45ebd7
MS
3132011-02-18 Michael Snyder <msnyder@vmware.com>
314
315 * thread.c (info_threads_command): Re-implement using
316 get_number_or_range.
65ebfb52 317 (thread_apply_command): Ditto.
7a45ebd7 318
94d5e490
TT
3192011-02-18 Tom Tromey <tromey@redhat.com>
320
321 * common/ax.def: New file.
322 * ax.h (enum agent_op): Use ax.def.
323 * ax-general.c (aop_map): Use ax.def.
324
c7f96d2b
TT
3252011-02-18 Tom Tromey <tromey@redhat.com>
326
327 * ax-general.c (aop_map): Add pick and rot.
328 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
329 <DW_OP_rot>: Implement.
330 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
331 (ax_pick): Declare.
332 * ax-general.c (ax_pick): New function.
333
66694b75
TT
3342011-02-18 Tom Tromey <tromey@redhat.com>
335
336 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
337
eeaafae2
JK
3382011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
339 Tom Tromey <tromey@redhat.com>
340
341 * cp-support.c (make_symbol_overload_list_namespace): Do not call
342 make_symbol_overload_list_block with NULL BLOCK.
343 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
344
3c3fe74c
PA
3452011-02-18 Pedro Alves <pedro@codesourcery.com>
346
347 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
348 * breakpoint.h (get_number_or_range): Declare.
349 * printcmd.c (ALL_DISPLAYS): Declare.
350 (delete_display): Reimplement taking a display pointer.
351 (undisplay_command): Accept a range of displays to delete, using
352 get_number_or_range.
353
13163d80
PM
3542011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
355
356 * c-valprint.c (c_val_print): Add embedded_offset to address
357 for arrays of unspecified length.
358 * p-valprint.c (pascal_val_print): Likewise.
359
b434a28f
YQ
3602011-02-18 Yao Qi <yao@codesourcery.com>
361
362 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
363 (arm_process_displaced_insn): .. here. Remove parameter INSN.
364 (thumb_process_displaced_insn): New.
365 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
366 call to arm_process_displaced_insn.
367 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
368
9f6f94ff
TT
3692011-02-17 Tom Tromey <tromey@redhat.com>
370
371 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
372 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
373 compile_dwarf_to_ax. No longer static. Call
374 dwarf2_compile_cfa_to_ax.
375 (locexpr_tracepoint_var_ref): Update.
376 (loclist_tracepoint_var_ref): Update.
377 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
378 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
379 argument; add 'gdbarch' and 'pc'.
380 (dwarf2_compile_cfa_to_ax): New function.
381 (dwarf2_frame_cache): Update.
382
e67ad678
JB
3832011-02-17 Joel Brobecker <brobecker@adacore.com>
384
385 * ada-lang.c (ada_type_of_array): Fix the size of the array
386 in the case of an unconstrained packed array.
387
946ebb0d
YQ
3882011-02-17 Yao Qi <yao@codesourcery.com>
389
390 * common/Makefile.in: Add more targets for make.
391
1ba1b353
TT
3922011-02-16 Tom Tromey <tromey@redhat.com>
393
394 * dwarf2loc.c (unimplemented): Fix typo.
395
b1bfef65
TT
3962011-02-16 Tom Tromey <tromey@redhat.com>
397
398 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
399 (compile_dwarf_to_ax) <default>: Use unimplemented.
400 <DW_OP_deref>: Update.
401 (disassemble_dwarf_expression): Update.
402 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
403 (decode_locdesc): Update.
404 * dwarf2expr.h (dwarf_stack_op_name): Update.
405
5f1e6f19
TT
4062011-02-16 Tom Tromey <tromey@redhat.com>
407
408 * ax.h (struct aop_map) <name>: Now const.
409
a0c78a73
PA
4102011-02-16 Tom Tromey <tromey@redhat.com>
411
412 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
413 than axs_rvalue.
414
946ebb0d 4152011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
416
417 * infrun.c (get_displaced_step_closure_by_addr): New.
418 * inferior.h: Declare it.
419 * arm-tdep.c: (arm_pc_is_thumb): Call
420 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
421 returns non-NULL.
422
08807d5a
PA
4232011-02-16 Pedro Alves <pedro@codesourcery.com>
424 Jan Kratochvil <jan.kratochvil@redhat.com>
425
426 gdb/
427 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
428
29976f3f
PA
4292011-02-16 Pedro Alves <pedro@codesourcery.com>
430 Jan Kratochvil <jan.kratochvil@redhat.com>
431
432 * value.c (value_contents_copy_raw): Extend describing comment.
433 Assert that the destination contents we're overwriting are wholly
434 available.
fb68ae73 435 (value_contents_copy): Extend describing comment.
29976f3f 436
cd24cfaa
PA
4372011-02-16 Pedro Alves <pedro@codesourcery.com>
438 Jan Kratochvil <jan.kratochvil@redhat.com>
439
440 * value.c (value_available_contents_eq): Remove redundant local
441 variables. Fix available contents comparision.
442 * value.h (value_available_contents_eq): Extend describing
443 comment.
444
60bbf338
YQ
4452011-02-16 Yao Qi <yao@codesourcery.com>
446
447 * thread.c (info_threads_command): Add missing i18n markup and remove
448 trailing newline.
449
17450429
PP
4502011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
451
452 * breakpoint.c (longjmp_names): New variable.
453 (struct breakpoint_objfile_data): New type.
454 (breakpoint_objfile_key): New variable.
455 (msym_not_found): New variable.
456 (msym_not_found_p): New predicate.
457 (get_breakpoint_objfile_data): New function.
458 (create_overlay_event_breakpoint): Check per-objfile cache for
459 symbols first.
460 (create_longjmp_master_breakpoint): Likewise.
461 (create_std_terminate_master_breakpoint): Likewise.
462 (create_exception_master_breakpoint): Likewise.
463 (_initialize_breakpoint): Register per-objfile data key.
464
af02033e
PP
4652011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
466
467 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
468 parameter value.
469 (create_longjmp_master_breakpoint): Loop over longjmp names.
470 (create_std_terminate_master_breakpoint): Const-propagate parameter
471 value.
472 (update_breakpoints_after_exec): Adjust.
473 (breakpoint_re_set): Adjust.
474
60f98dde
MS
4752011-02-15 Michael Snyder <msnyder@vmware.com>
476
cdf99611
MS
477 * thread.c (info_threads_command): Process arg as thread id,
478 or list of thread ids.
479 (thread_find_command): New command.
480 (_initialize_thread): Document argument for info threads.
481 Document 'thread find' command.
482 * NEWS: Document new command "thread find".
60f98dde 483
0feedb2c
JK
4842011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
485
486 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
487 * aclocal.m4: Regenerated with aclocal-1.11.1.
488 * common/configure: Regenerate with autoconf-2.64.
489
648cd113
KW
4902011-02-15 Ken Werner <ken.werner@de.ibm.com>
491
492 * opencl-lang.c (build_opencl_types): Set the size of the built-in
493 bool data type to a size of one byte.
494
5657161f
PA
4952011-02-15 Pedro Alves <pedro@codesourcery.com>
496 Jan Kratochvil <jan.kratochvil@redhat.com>
497
498 * target.c (memory_xfer_live_readonly_partial): Document where to
499 look for interface description.
500
494e194e
YQ
5012011-02-15 Yao Qi <yao@codesourcery.com>
502
503 PR tdep/12352
504 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
505 order to store PC value on stack instead of text section.
506
d9492458
TJB
5072011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
508
509 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
510 the EFP register set size.
511 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
512 data from the VMX register.
513 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
514 and write data from/to the VMX register.
515
cdf99611
MS
5162011-02-14 Michael Snyder <msnyder@vmware.com>
517
518 * command.h (enum command_class): New class 'no_set_class', for
519 "show" commands without a corresponding "set" command.
520 * value.c (_initialize_values): Use 'no_set_class' for "show values".
521 * copying.c (_initialize_copying): Ditto for "show copying" and
522 "show warranty".
523 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
524 "show version".
525 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
526 which there is no corresponding "set" command (eg. "show copying").
527
424447ee
PA
5282011-02-14 Pedro Alves <pedro@codesourcery.com>
529 Jan Kratochvil <jan.kratochvil@redhat.com>
530
531 * exec.c (section_table_available_memory): Change `len' parameter
532 type to ULONGEST.
533 * exec.h (section_table_available_memory): Ditto.
534 * value.h (read_value_memory): Rename the `offset' parameter to
535 `embedded_offset'.
536
c0f61f9c 5372011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 538 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
539
540 * memrange.c (compare_mem_ranges): Mention sort order in
541 describing comment.
542 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
543 * tracepoint.c (traceframe_available_memory): Extend comment to
544 mention what happens to RESULT when the target does not support
545 the query.
546
6bfc80c7
PA
5472011-02-14 Pedro Alves <pedro@codesourcery.com>
548 Jan Kratochvil <jan.kratochvil@redhat.com>
549
550 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
551 range.
552
e7303042
PA
5532011-02-14 Pedro Alves <pedro@codesourcery.com>
554
555 * value.c (value_bits_valid, value_bits_synthetic_pointer):
556 No longer handle NULL values.
557
8af8e3bc
PA
5582011-02-14 Pedro Alves <pedro@codesourcery.com>
559
560 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
561 * value.c: Include "exceptions.h".
562 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
563 generic error.
564 * cp-abi.c: Include gdb_assert.h.
565 (baseclass_offset): Add `embedded_offset' and `val' parameters.
566 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
567 errors.
568 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
569 parameters. No longer returns -1 on error.
570 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
571 `val' parameters.
572 * cp-valprint.c: Include exceptions.h.
573 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
574 the baseclass_offset. Handle unavailable base classes. Use
575 val_print_invalid_address.
576 * p-valprint.c: Include exceptions.h.
577 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
578 when fetching the baseclass_offset. No longer expect
579 baseclass_offset returning -1. Handle unavailable base classes.
580 Use val_print_invalid_address.
581 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
582 `valaddr' parameter, and change its type to gdb_byte pointer. Add
583 `embedded_offset' and `val' parameters. Adjust.
584 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
585 parameter, and change its type to gdb_byte pointer. Add
586 `embedded_offset' and `val' parameters. Adjust. No longer expect
587 baseclass_offset returning -1.
588 (value_dynamic_cast): Use value_contents_for_printing rather than
589 value_contents. Adjust.
590 (search_struct_field): No longer expect baseclass_offset returning
591 -1.
592 (search_struct_method): If reading memory from the target is
593 necessary, wrap it in a new value to pass to baseclass_offset. No
594 longer expect baseclass_offset returning -1.
595 (find_method_list): No longer expect baseclass_offset returning
596 -1. Use value_contents_for_printing rather than value_contents.
597 * valprint.c (val_print_invalid_address): New function.
598 * valprint.h (val_print_invalid_address): Declare.
599 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
600 and `val' parameters. No longer expect baseclass_offset returning
601 -1. Adjust.
602 * gnu-v2-abi.c: Include "exceptions.h".
603 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
604 parameters. Handle unavailable memory. Recurse through
605 gnuv2_baseclass_offset directly, rather than through
606 baseclass_offset. No longer returns -1 on not found, instead
607 throw an error.
608 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
609 `val' parameters. Adjust.
610
1b28d0b3
PA
6112011-02-14 Pedro Alves <pedro@codesourcery.com>
612
613 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
614 almost but not quite adjacent.
615
ec0a52e1
PA
6162011-02-14 Pedro Alves <pedro@codesourcery.com>
617
618 * value.h (value_entirely_available): Declare.
619 * value.c (value_entirely_available): New function.
620 * c-valprint.c (c_value_print): Don't try fetching the pointer's
621 real type if the pointer is unavailable.
622
24e6bcee
PA
6232011-02-14 Pedro Alves <pedro@codesourcery.com>
624
625 * valops.c (value_repeat): Use read_value_memory instead of
626 read_memory.
627
39d37385
PA
6282011-02-14 Pedro Alves <pedro@codesourcery.com>
629
630 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
631 * value.c (value_contents_copy_raw, value_contents_copy): New
632 functions.
633 (value_primitive_field): Use value_contents_copy_raw instead of
634 memcpy.
635 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
636 memcpy.
637 (value_array, value_slice): Ditto.
638 * valarith.c (value_subscripted_rvalue): Use
639 value_contents_copy_raw instead of memcpy.
640
a3d34bf4
PA
6412011-02-14 Pedro Alves <pedro@codesourcery.com>
642
643 <unavailable> references.
644
645 * valops.c (get_value_at): Use value_from_contents_and_address,
646 avoiding read_memory.
647
9fc6d940
PA
6482011-02-14 Pedro Alves <pedro@codesourcery.com>
649
650 * c-valprint.c (c_val_print): Print a string with unavailable
651 contents as an array.
652
5467c6c8
PA
6532011-02-14 Pedro Alves <pedro@codesourcery.com>
654
655 * value.h (unpack_bits_as_long): Delete declaration.
656 (unpack_value_bits_as_long): Declare.
657 (unpack_value_field_as_long): Declare.
658 (value_field_bitfield): Declare.
659 * value.c (unpack_bits_as_long): Rename to...
660 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
661 value parameters. Return the extracted result in a new output
662 parameter. If the value contents are unavailable, return false,
663 otherwise return true.
664 (unpack_value_bits_as_long): New.
665 (unpack_field_as_long): Rename to...
666 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
667 Add embedded_offset and value parameters. Return the extracted
668 result in a new output parameter. If the value contents are
669 unavailable, return false, otherwise return true.
670 (unpack_value_field_as_long): New.
671 (unpack_field_as_long_1): New.
672 (unpack_field_as_long): Reimplement as wrapper around
673 unpack_value_field_as_long_1.
674 (value_field_bitfield): New function.
675 * valops.c (value_fetch_lazy): When fetching a bitfield, use
676 unpack_value_bits_as_long. Mark the value as unavailable, if it
677 is unavailable.
678 * jv-valprint.c (java_print_value_fields): Use
679 value_field_bitfield.
680 * p-valprint.c (pascal_object_print_value_fields): Use
681 value_field_bitfield.
682 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
683
3158c6ed
PA
6842011-02-14 Pedro Alves <pedro@codesourcery.com>
685
686 * value.c (get_internalvar_integer): Also return the int value of
687 TYPE_CODE_INT INTERNALVAR_VALUE values.
688 (set_internalvar): Don't special case TYPE_CODE_INT.
689
9fbdca0d
PA
6902011-02-14 Pedro Alves <pedro@codesourcery.com>
691
692 * value.c (struct internalvar) <enum internalvar_kind>: Remove
693 INTERNALVAR_POINTER.
694 <pointer>: Delete.
695 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
696 (set_internalvar): Remove special TYPE_CODE_PTR handling.
697 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
698
c8c1c22f
PA
6992011-02-14 Pedro Alves <pedro@codesourcery.com>
700
701 * value.h (value_available_contents_eq): Declare.
702 * value.c (find_first_range_overlap): New function.
703 (value_available_contents_eq): New function.
704 * valprint.c (val_print_array_elements): Use
705 value_available_contents_eq.
706 * ada-valprint.c (val_print_packed_array_elements): Use
707 value_available_contents_eq.
708 * jv-valprint.c (java_value_print): Use
709 value_available_contents_eq.
710
e6e4e701
PA
7112011-02-14 Pedro Alves <pedro@codesourcery.com>
712
713 * target.c (target_read_live_memory): New function.
714 (memory_xfer_live_readonly_partial): New.
715 (memory_xfer_partial): If reading from a traceframe, fallback to
716 reading unavailable read-only memory from read-only regions of
717 live target memory.
718 * tracepoint.c (disconnect_tracing): Adjust.
719 (set_current_traceframe): New, factored out from
720 set_traceframe_number.
721 (set_traceframe_number): Reimplement to only change the traceframe
722 number on the GDB side.
723 (do_restore_current_traceframe_cleanup): Adjust.
724 (make_cleanup_restore_traceframe_number): New.
725 (cur_traceframe_number): New global.
726 (tfile_open): Set cur_traceframe_number to no traceframe.
727 (set_tfile_traceframe): New function.
728 (tfile_trace_find): If looking up a traceframe using any method
729 other than by number, make sure the current tfile traceframe
730 matches gdb's current traceframe. Update the current tfile
731 traceframe if the lookup succeeded.
732 (tfile_fetch_registers, tfile_xfer_partial)
733 (tfile_get_trace_state_variable_value): Make sure the remote
734 traceframe matches gdb's current traceframe.
735 * remote.c (remote_traceframe_number): New global.
736 (remote_open_1): Set it to -1.
737 (set_remote_traceframe): New function.
738 (remote_fetch_registers, remote_store_registers)
739 (remote_xfer_memory, remote_xfer_partial)
740 (remote_get_trace_state_variable_value): Make sure the remote
741 traceframe matches gdb's current traceframe.
742 (remote_trace_find): If looking up a traceframe using any method
743 other than by number, make sure the current remote traceframe
744 matches gdb's current traceframe. Update the current remote
745 traceframe if the lookup succeeded.
746 * infrun.c (fetch_inferior_event): Adjust.
747 * tracepoint.h (set_current_traceframe): Declare.
748 (get_traceframe_number, set_traceframe_number): Add describing
749 comments.
750
e6ca34fc
PA
7512011-02-14 Pedro Alves <pedro@codesourcery.com>
752
753 Mark pieces of values as unavailable if the corresponding memory
754 is unavailable.
755
756 * valops.c: Include tracepoint.h.
757 (value_fetch_lazy): Use read_value_memory.
758 (read_value_memory): New.
759 * value.h (read_value_memory): Declare.
760 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
761 * exec.c (section_table_available_memory): New function.
762 * exec.h (section_table_available_memory): Declare.
763
2a7498d8
PA
7642011-02-14 Pedro Alves <pedro@codesourcery.com>
765
766 * Makefile.in (SFILES): Add memrange.c.
767 (HFILES_NO_SRCDIR): Add memrange.h.
768 (COMMON_OBS): Add memrange.o.
769 * memrange.c: New file.
770 * memrange.h: New file.
771 * tracepoint.c: Include memrange.h.
772 (struct mem_range): Delete.
773 (mem_range_s): Delete.
774 (traceframe_available_memory): New function.
775 * tracepoint.h (traceframe_available_memory): Declare.
776
b3b9301e
PA
7772011-02-14 Pedro Alves <pedro@codesourcery.com>
778
779 * target.h (struct traceframe_info): Forward declare.
780 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
781 (struct target_ops) <to_traceframe_info>: New field.
782 (target_traceframe_info): New.
783 * target.c (update_current_target): Inherit and default
784 to_traceframe_info.
785 * remote.c (PACKET_qXfer_traceframe_info): New.
786 (remote_protocol_features): Register qXfer:traceframe-info:read.
787 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
788 (remote_traceframe_info): New.
789 (init_remote_ops): Install it.
790 (_initialize_remote): Install "set/show remote traceframe-info"
791 commands.
792 * tracepoint.h (parse_traceframe_info): Declare.
793 * tracepoint.c (struct mem_range): New.
794 (mem_range_s): New typedef.
795 (struct traceframe_info): New.
796 (traceframe_info): New global.
797 (free_traceframe_info): New function.
798 (clear_traceframe_info): New function.
799 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
800 info.
801 (build_traceframe_info): New function.
802 (tfile_traceframe_info): New function.
803 (init_tfile_ops): Install tfile_traceframe_info.
804 (traceframe_info_start_memory, free_result): New functions.
805 (memory_attributes, traceframe_info_elements): New globals.
806 (parse_traceframe_info, get_traceframe_info): New functions.
807 * features/traceframe-info.dtd: New file.
808 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
809
4e07d55f
PA
8102011-02-14 Pedro Alves <pedro@codesourcery.com>
811
812 Base support for <unavailable> value contents.
813
4e07d55f
PA
814 * value.h (value_bytes_available): Declare.
815 (mark_value_bytes_unavailable): Declare.
816 * value.c (struct range): New struct.
817 (range_s): New typedef.
818 (ranges_overlap): New function.
819 (range_lessthan): New function.
820 (ranges_contain_p): New function.
821 (struct value) <unavailable>: New field.
822 (value_bytes_available): New function.
823 (mark_value_bytes_unavailable): New function.
824 (require_not_optimized_out): Constify parameter.
825 (require_available): New function.
826 (value_contents_all, value_contents): Require all bytes be
827 available.
828 (value_free): Free `unavailable'.
829 (value_copy): Copy `unavailable'.
830 * valprint.h (val_print_unavailable): Declare.
831 * valprint.c (valprint_check_validity): Rename `offset' parameter
832 to `embedded_offset'. If printing a scalar, check whether the
833 value chunk is available.
834 (val_print_unavailable): New.
835 (val_print_scalar_formatted): Check whether the value is
836 available.
837 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
838 pretty-printing unavailable values.
839
bc9a5551
JK
8402011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
841
842 Fix const/volatile qualifiers of C++ types, PR c++/12328.
843 * c-typeprint.c (c_type_print_args): Update the function comment. New
844 variable param_type, initialize it. Remove const/volatile qualifiers
845 for language_cplus and !show_artificial. Use param_type.
846
93b55aa1
JK
8472011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
848
849 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
850 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
851 * symtab.h (struct symtab) <next>: Comment extension.
852
181d9476
YQ
8532011-02-12 Yao Qi <yao@codesourcery.com>
854
855 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
856
b708a5c7
JK
8572011-02-11 Yao Qi <yao@codesourcery.com>
858
859 * common/Makefile.in: Add copyright header.
860
c5187ac6
PA
8612011-02-11 Pedro Alves <pedro@codesourcery.com>
862
863 * infrun.c (proceed): Move switching out and in of tfind mode from
864 here ...
865 (fetch_inferior_event): ... to here.
866
4f3e6fb7
YQ
8672011-02-11 Yao Qi <yao@codesourcery.com>
868
869 * Makefile.in: Remove signals.o from COMMON_OBS. Link
870 libcommon.a.
871 * configure.ac: Add common to sub dir.
872 * configure: Regenerate.
873
b708a5c7
JK
8742011-02-11 Yao Qi <yao@codesourcery.com>
875
876 Build libcommon.a.
877
878 * common/Makefile.in: New.
879 * common/configure.ac: New.
880 * common/aclocal.m4: New.
881 * common/configure: Generate.
882
2287cc7e
PA
8832011-02-10 Pedro Alves <pedro@codesourcery.com>
884
885 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
886 side of the parenthesis.
887
888 Merge from GCC:
889 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 890 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 891
fd62cb89
MS
8922011-02-08 Michael Snyder <msnyder@vmware.com>
893
894 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
895
56d2815c
JK
8962011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
897
898 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
899 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
900 psubd and paddd.
901
4f7d61a8
JK
9022011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
903
904 PR 12361.
905 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
906 phsubsw.
907 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
908 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
909
54fcddd0
UW
9102011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
911
912 * dwarf2read.c (read_subroutine_type): Set special calling
913 convention flag for functions compiled by IBM XL C for OpenCL.
914 * ppc-sysv-tdep.c: Include "dwarf2.h"
915 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
916 calling convention.
917 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
918 IBM OpenCL vector types calling convention.
919 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
920 (ppc_sysv_abi_broken_return_value): Likewise.
921 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
922 types calling convention.
923 (ppc64_sysv_abi_return_value): Likewise.
924 * spu-tdep.c: Include "dwarf2.h"
925 (spu_return_value): Implement IBM OpenCL vector types calling
926 convention.
927
d6dafb7c
UW
9282011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
929
930 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
931 correct ABI for AltiVec vector arguments.
932
32b72a42
PA
9332011-02-07 Pedro Alves <pedro@codesourcery.com>
934
935 * valprint.c (val_print): Extend comment.
936 * ada-valprint.c (ada_valprint): Rewrite comment deferring
937 interface explanation to val_print.
938 (ada_val_print_array): Adjust comment to current interface.
939 (print_field_values): Adjust comment to current interface.
940 * c-valprint.c (c_val_print): Rewrite comment deferring interface
941 explanation to val_print.
942 * f-valprint.c (f_val_print): Ditto.
943 * jv-valprint.c (java_val_print): Ditto.
944 * m2-valprint.c (m2_val_print): Ditto.
945 * p-valprint.c (pascal_val_print): Ditto.
946
9998af43
TJB
9472011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
948
949 * breakpoint.c (parse_breakpoint_sals): Fix description.
950
505500db 9512011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 952 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
953
954 * python/py-inferior.c (python_on_normal_stop): New function.
955 (python_on_resume): New function.
956 (python_inferior_exit): New function.
957 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
958 inferior_exit observers.
959 * python/py-evtregistry.c: New file.
960 * python/py-threadevent.c : New file.
961 * python/py-event.c: New file.
962 * python/py-evts.c: New file.
963 * python/py-continueevent.c: New file.
964 * python/py-bpevent.c: New file.
965 * python/py-signalevent.c: New file.
966 * python/py-exetiedevent.c: New file.
967 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
968 Move struct breakpoint_object from here...
969 * python/python-internal.h: ... to here.
970 * python/py-event.h: New file.
971 * python/py-events.h: New file.
972 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
973 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
974 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
975 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
976 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
977 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
978 Add build rules for all the above.
979
9e0ac564
TT
9802011-02-04 Tom Tromey <tromey@redhat.com>
981
982 * dwarf2read.c (dwarf2_section_empty_p): New function.
983 (dwarf2_read_section): Use dwarf2_section_empty_p.
984 (dwarf2_section_size): New function.
985 (dwarf2_get_section_info): Unconditionally read section.
986 (dwarf2_read_index): Use dwarf2_section_empty_p.
987 (partial_read_comp_unit_head): Use dwarf2_section_size.
988 (dwarf2_symbol_mark_computed): Likewise.
989
eee5b35e
DD
9902011-02-04 David Daney <ddaney@caviumnetworks.com>
991
992 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
993
385203ed
DD
9942011-02-04 David Daney <ddaney@caviumnetworks.com>
995
996 * mips-linux-tdep.c: Include xml-syscall.h.
997 (mips_linux_get_syscall_number): New function.
998 (mips_linux_init_abi): Add calls to
999 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
1000 * data-directory/Makefile.in (SYSCALLS_FILES): Add
1001 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
1002 * syscalls/mips-n32-linux.xml: New file.
1003 * syscalls/mips-n64-linux.xml: New file.
1004 * syscalls/mips-o32-linux.xml: New file.
1005
9277c30c
UW
10062011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
1007
1008 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
1009 Complain about inverted range entries.
1010 (dwarf2_record_block_ranges): Likewise.
1011
a3be7890
TJB
10122011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1013
1014 Fix some typos.
1015 * breakpoint.c (update_watchpoint): Fix name of the
1016 update_global_location_list function.
1017 (print_one_breakpoint): Fix typo.
1018 (_initialize_breakpoint): Remove extra space in hbreak help
1019 string.
1020 * breakpoint.h (struct bp_location) <length>: Fix field
1021 description.
1022
041274d8
PA
10232011-02-04 Pedro Alves <pedro@codesourcery.com>
1024
1025 * regcache.c (registers_changed_ptid): Don't explictly always
1026 clear `current_regcache'. Only clear current_thread_ptid and
1027 current_thread_arch when PTID matches. Only reinit the frame
1028 cache if PTID matches the current inferior_ptid. Move alloca(0)
1029 call to ...
1030 (registers_changed): ... here.
1031
c1c2ab58
UW
10322011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
1033
1034 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
1035 starts with __stack_chk_guard as stack guard symbol.
1036
9011945e
AB
10372011-02-03 Andrew Burgess <aburgess@broadcom.com>
1038
1039 * disasm.c (compare_lines): Handle the end of sequence markers
1040 within the line table to better support disassembling over
1041 compilation unit boundaries.
1042
e0634ccf
UW
10432011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1044
1045 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
1046 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
1047 implementation even if no symbols are available.
1048 (thumb_analyze_prologue): Update call to skip_prologue_function.
1049 (arm_analyze_prologue): Likewise.
1050
0e9e9abd
UW
10512011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1052
1053 * arm-tdep.c: Include "observer.h".
1054 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
1055 (arm_exidx_data_key): New static variable.
1056 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
1057 (struct arm_exidx_data): Likewise.
1058 (arm_exidx_data_free): New function.
1059 (arm_compare_exidx_entries): Likewise.
1060 (arm_obj_section_from_vma): Likewise.
1061 (arm_exidx_new_objfile): Likewise.
1062 (arm_find_exidx_entry): Likewise.
1063 (arm_exidx_fill_cache): Likewise.
1064 (arm_exidx_unwind_sniffer): Likewise.
1065 (arm_exidx_unwind): New global variable.
1066 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
1067 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
1068 observer. Register arm_exidx_data_key as objfile data.
1069
2e9e421f
UW
10702011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1071
1072 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
1073 due to accessing uninitialized variable. Fix indentation.
1074
580688f3
PA
10752011-02-02 Pedro Alves <pedro@codesourcery.com>
1076
1077 * c-valprint.c (c_value_print): When doing virtual base pointer
1078 adjustment, create a new value with adjusted contents rather than
1079 changing the contents of the value being printed (and getting it
1080 wrong).
1081
3d2c1d41
PA
10822011-02-02 Pedro Alves <pedro@codesourcery.com>
1083
1084 * xml-support.c (xml_find_attribute): New.
1085 (xinclude_start_include): Use it.
1086 * xml-support.h (xml_find_attribute): Declare.
1087 * memory-map.c (memory_map_start_memory)
1088 (memory_map_start_property): Use xml_find_attribute.
1089 * osdata.c (osdata_start_osdata, osdata_start_column): Use
1090 xml_find_attribute.
1091 * remote.c (start_thread): Use xml_find_attribute.
1092 * solib-target.c (library_list_start_segment)
1093 (library_list_start_section, library_list_start_library)
1094 (library_list_start_list): Use xml_find_attribute.
1095 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
1096 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
1097 (tdesc_start_field): Use xml_find_attribute.
1098
0af3e2db
UW
10992011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
1100
1101 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
1102 (BUILD_OCL_VTYPES): Update.
1103
c1039e3c
JB
11042011-02-02 Joel Brobecker <brobecker@adacore.com>
1105
1106 * configure.ac: Work around non-GNU sed limitation when computing
1107 python version number.
1108 * configure: Regenerate.
1109
600ea1be
JK
11102011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1111
1112 Fix debug printing of TYPE_INSTANCE.
1113 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
1114 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
1115
56c12414
JK
11162011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1117
1118 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
1119 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
1120 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
1121 * ada-operator.inc: Rename the file to ...
1122 * ada-operator.def: ... here, wrap all the entries by macro OP.
1123 * expprint.c (op_name_standard): Remove all the entries. Include
1124 "std-operator.def" instead.
1125 * expression.h (enum exp_opcode): Include "std-operator.def" and
1126 "ada-operator.def". Move all the entries ...
1127 * std-operator.def: ... here, wrap all the entries by macro OP.
1128
c52b559d
PP
11292011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1130
1131 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
1132 * breakpoint.c (remove_jit_event_breakpoints): New function.
1133 * jit.c (jit_descriptor_addr): Delete.
1134 (registering_code): Delete.
1135 (clear_int): Delete.
1136 (jit_inferior_data): New variable.
1137 (struct jit_inferior_data): New type.
1138 (get_jit_inferior_data): New function.
1139 (jit_inferior_data_cleanup): New function.
1140 (jit_read_descriptor): Adjust.
1141 (jit_register_code): Adjust.
1142 (jit_breakpoint_re_set_internal): New function; move code here ...
1143 (jit_inferior_init): ... from here.
1144 (jit_breakpoint_re_set): Adjust.
1145 (jit_reset_inferior_data_and_breakpoints): New function.
1146 (jit_inferior_created_observer): Adjust.
1147 (jit_inferior_exit_hook): Adjust.
1148 (jit_executable_changed_observer): New function.
1149 (jit_event_handler): Adjust.
1150 (_initialize_jit): Adjust.
1151
e839132d
MS
11522011-01-31 Michael Snyder <msnyder@vmware.com>
1153
1154 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
1155 line.
1156
47a80e90
TT
11572011-01-31 Tom Tromey <tromey@redhat.com>
1158
1159 PR python/12216:
1160 * python/python.c (execute_gdb_command): Call
1161 prevent_dont_repeat.
1162 * top.c (suppress_dont_repeat): New global.
1163 (dont_repeat): Use it.
1164 (prevent_dont_repeat): New function.
1165 * command.h (prevent_dont_repeat): Declare.
1166
45a43567
TT
11672011-01-31 Tom Tromey <tromey@redhat.com>
1168
1169 * infcmd.c (finish_backward): Use breakpoint_set_silent.
1170 * python/py-breakpoint.c (bppy_set_silent): Use
1171 breakpoint_set_silent.
1172 (bppy_set_thread): Use breakpoint_set_thread.
1173 (bppy_set_task): Use breakpoint_set_task.
1174 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
1175 (breakpoint_set_task): Declare.
1176 (make_breakpoint_silent): Remove.
1177 * breakpoint.c (breakpoint_set_silent): New function.
1178 (breakpoint_set_thread): Likewise.
1179 (breakpoint_set_task): Likewise.
1180 (make_breakpoint_silent): Remove.
1181
09d682a4
TT
11822011-01-31 Tom Tromey <tromey@redhat.com>
1183
1184 * breakpoint.h (user_breakpoint_p): Declare.
1185 * breakpoint.c (user_breakpoint_p): New function.
1186 (breakpoint_1): Use it.
1187 (save_breakpoints): Likewise.
1188
9c4ea6c5
JB
11892011-01-31 Joel Brobecker <brobecker@adacore.com>
1190
1191 * configure.ac: Add handling of Python distribution on Windows.
1192 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
1193 sysconfig variables are not defined, then do not use them.
1194 On Windows, if LIBPL is not defined, then use prefix + '/libs'
1195 instead. On Windows, return all paths using forward-slashes
1196 rather than backslashes.
1197
ac534cba
JB
11982011-01-31 Joel Brobecker <brobecker@adacore.com>
1199
1200 * configure.ac: Remove fallback behavior for building
1201 against Python. Remove tweaking of Python include path.
1202 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
1203 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
1204 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
1205 Always restore CPPFLAGS and LIBS after linking test.
1206 * configure: Regenerated.
1207 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
1208 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
1209 * python/python-internal.h: Adjust includes of Python .h files.
1210
c2f0d045
JB
12112011-01-31 Joel Brobecker <brobecker@adacore.com>
1212
1213 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
1214 in error message.
1215
6b0c4c1f
JB
12162011-01-31 Joel Brobecker <brobecker@adacore.com>
1217
1218 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
1219 value test.
1220
672c9795
YQ
12212011-01-31 Yao Qi <yao@codesourcery.com>
1222
1223 * arm-linux-nat.c: Update calls to regcache_register_status
1224 instead of regcache_valid_p.
1225 * aix-thread.c: Likewise.
1226 * i386gnu-nat.c: Likewise.
1227
80b23b6a
JK
12282011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1229
1230 Fix crash.
1231 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
1232 touching TYPE_FIELD_ARTIFICIAL.
1233
4cd712bd
RE
12342011-01-28 Richard Earnshaw <rearnsha@arm.com>
1235
1236 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
1237 Committers.
1238
ffd5ec24
PA
12392011-01-28 Pedro Alves <pedro@codesourcery.com>
1240
1241 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
1242 selected, don't try iterating over the traceframe's blocks.
1243 (tfile_has_stack): If there's no traceframe selected, then there's
1244 no stack.
1245 (tfile_has_registers): If there's no traceframe selected, then
1246 there's no registers.
1247
e8c9e0a1
PA
12482011-01-28 Pedro Alves <pedro@codesourcery.com>
1249
1250 * target.c (memory_xfer_partial): No need to restore shadows if we
1251 haven't read anything.
1252
de15c4ab
PA
12532011-01-28 Pedro Alves <pedro@codesourcery.com>
1254
1255 * mips-tdep.c (mips_print_register): Use get_frame_register_value
1256 and val_print_scalar_formatted.
1257
9f41c731
PA
12582011-01-27 Pedro Alves <pedro@codesourcery.com>
1259
1260 * tracepoint.c (tfile_read): New.
1261 (tfile_open): Use it.
1262 (tfile_get_traceframe_address): Use it.
1263 (tfile_trace_find): Use it.
1264 (walk_blocks_callback_func): New typedef.
1265 (match_blocktype): New function.
1266 (traceframe_walk_blocks): New function.
1267 (traceframe_find_block_type): New function.
1268 (tfile_fetch_registers, tfile_xfer_partial)
1269 (tfile_get_trace_state_variable_value): Use
1270 traceframe_find_block_type and tfile_read.
1271
cdefc55d
KB
12722011-01-26 Kevin Buettner <kevinb@redhat.com>
1273
1274 * remote-mips.c: Add internationalization mark ups. Remove
1275 trailing \n from already marked up strings.
1276
a81766d8
TT
12772011-01-26 Tom Tromey <tromey@redhat.com>
1278
1279 * python/py-prettyprint.c (print_string_repr): Clear
1280 'addressprint' option when calling val_print_string.
1281 (print_children): Handle Val_pretty_default. Clear 'addressprint'
1282 option when calling val_print_string.
1283
74aedc46
TT
12842011-01-26 Tom Tromey <tromey@redhat.com>
1285
1286 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
1287 GDB_PY_LL_ARG.
1288 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
1289 macros.
1290 (gdb_py_longest, gdb_py_ulongest): New typedefs.
1291 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
1292 (gdb_py_long_as_ulongest): New defines.
1293 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
1294 (gdb_py_int_as_long): Declare.
1295 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
1296 GDB_PY_LL_ARG, gdb_py_object_from_longest.
1297 (valpy_long): Add comment.
1298 * python/py-utils.c (get_addr_from_python): Use
1299 gdb_py_long_as_ulongest. Handle overflow properly.
1300 (gdb_py_object_from_longest): New function.
1301 (gdb_py_object_from_ulongest): Likewise.
1302 (gdb_py_int_as_long): Likewise.
1303 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
1304 * python/py-symtab.c (salpy_get_pc): Use
1305 gdb_py_long_from_ulongest.
1306 (salpy_get_line): Use PyInt_FromLong.
1307 * python/py-param.c (set_parameter_value): Use
1308 gdb_py_int_as_long.
1309 * python/py-lazy-string.c (stpy_get_address): Use
1310 gdb_py_long_from_ulongest.
1311 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
1312 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
1313 * python/py-breakpoint.c (bppy_set_thread): Use
1314 gdb_py_int_as_long.
1315 (bppy_set_task): Likewise.
1316 (bppy_set_ignore_count): Likewise.
1317 (bppy_set_hit_count): Likewise.
1318 * python/py-block.c (blpy_get_start): Use
1319 gdb_py_object_from_ulongest.
1320 (blpy_get_end): Likewise.
1321 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
1322
e4f6d2ec
TJB
13232011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
1324
1325 PR/symtab 11766:
1326 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
1327 * gdb/solib.c (solib_read_symbols): Check for addr_low in
1328 equality test for objfile, initialize addr_low if needed.
1329
b30aa278
PA
13302011-01-25 Pedro Alves <pedro@codesourcery.com>
1331
1332 * tui/tui-regs.c (tui_register_format): Remove dead code.
1333
ab2188aa
PA
13342011-01-25 Pedro Alves <pedro@codesourcery.com>
1335
1336 * printcmd.c (print_formatted): Use val_print_scalar_formatted
1337 instead of print_scalar_formatted.
1338 (print_scalar_formatted): Don't handle 's' format strings here,
1339 and add an assertion that we never see such format here.
1340 * valprint.h (val_print_scalar_formatted): Declare.
1341 * valprint.c (val_print_scalar_formatted): New.
1342 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
1343 instead of print_scalar_formatted.
1344 * jv-valprint.c (java_val_print): Ditto.
1345 * p-valprint.c (pascal_val_print): Ditto.
1346 * ada-valprint.c (ada_val_print_1): Ditto.
1347 * f-valprint.c (f_val_print): Ditto.
1348 * infcmd.c (registers_info): Ditto.
1349 * m2-valprint.c (m2_val_print): Ditto.
1350
66d61a4c
PA
13512011-01-25 Pedro Alves <pedro@codesourcery.com>
1352
1353 * m2-valprint.c (print_unbounded_array): Pass
1354 value_contents_for_printing rather than value_contents, to
1355 m2_print_array_contents. Also pass in the value.
1356
831adc1f
JK
13572011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1358
1359 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
1360 (save_gdb_index_command): Switch to .gdb_index version 4.
1361
20622269
PA
13622011-01-25 Pedro Alves <pedro@codesourcery.com>
1363
1364 * mi/mi-main.c (get_register): Use get_frame_register_value rather
1365 than frame_register, and always pass a valid value to val_print.
1366
585fdaa1
PA
13672011-01-25 Pedro Alves <pedro@codesourcery.com>
1368
1369 Centralize printing "<optimized out>".
1370
1371 * valprint.h (val_print_optimized_out): Declare.
1372 * cp-valprint.c (cp_print_value_fields): Use
1373 val_print_optimized_out.
1374 * jv-valprint.c (java_print_value_fields): Ditto.
1375 * p-valprint.c (pascal_object_print_value_fields): Ditto.
1376 * printcmd.c (print_formatted): Ditto.
1377 * valprint.c (valprint_check_validity): Ditto.
1378 (value_check_printable): Ditto.
1379 (val_print_optimized_out): New.
1380
29ec5263
PA
13812011-01-25 Pedro Alves <pedro@codesourcery.com>
1382
1383 * infcmd.c (default_print_registers_info): Allocate values so to
1384 never pass a NULL value to val_print.
1385
de4127a3
PA
13862011-01-25 Pedro Alves <pedro@codesourcery.com>
1387
1388 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
1389 boolean. Make sure to always pass a value that matches the
1390 contents buffer to callees. Preserve `address' for following
1391 iterations.
1392 * value.c (value_contents_for_printing_const): New.
1393 (value_address): Constify value argument.
1394 * value.h (value_contents_for_printing_const): Declare.
1395 (value_address): Constify value argument.
1396
ee99023e
PA
13972011-01-25 Pedro Alves <pedro@codesourcery.com>
1398
1399 * regcache.c (struct regcache_descr): Rename
1400 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
1401 and sizeof_cooked_register_valid_p to
1402 sizeof_cooked_register_status.
1403 (init_regcache_descr): Adjust.
1404 (struct regcache): Rename register_valid_p field to
1405 register_status.
1406 (regcache_xmalloc_1, regcache_xfree, regcache_save)
1407 (do_cooked_read): Adjust.
1408 (regcache_valid_p): Rename to ...
1409 (regcache_register_status): ... this. Adjust.
1410 (regcache_invalidate): Adjust.
1411 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
1412 Adjust.
1413 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
1414 as unavailable, not valid.
1415 (regcache_dump): Adjust.
1416 * regcache.h (enum register_status): New.
1417 (regcache_register_status): Declare.
1418 (regcache_invalidate): Delete declaration.
1419 * corelow.c (get_core_registers): Adjust.
1420 * tracepoint.c (tfile_fetch_registers): Adjust.
1421 * trad-frame.c (REG_VALUE): Rename to ...
1422 (TF_REG_VALUE): ... this.
1423 (REG_UNKNOWN): Rename to ...
1424 (TF_REG_UNKNOWN): ... this.
1425 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
1426 * mi/mi-main.c (register_changed_p): Adjust.
1427
99e42fd8
PA
14282011-01-25 Pedro Alves <pedro@codesourcery.com>
1429
1430 * regcache.c (struct regcache_descr): Remove outdated comment.
1431 (init_regcache_descr): Remove sizeof_raw_register_valid_p
1432 overallocate hack.
1433 (regcache_xmalloc): Rename to ...
1434 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
1435 Allocate the regcache type accordingly.
1436 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
1437 (regcache_xfree): Asser the source is also readonly. Copy sizeof
1438 cooked registers, not raw.
1439 (regcache_dup_no_passthrough): Delete.
1440 (get_thread_arch_regcache): Use regcache_xmalloc_1.
1441 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
1442 mention obsolete write_register_bytes.
1443 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
1444
f7605bc2
PA
14452011-01-25 Pedro Alves <pedro@codesourcery.com>
1446
1447 Stop remote_read_bytes from handling partial reads itself.
1448
1449 * remote-fileio.c: Include target.h.
1450 (remote_fileio_write_bytes): Delete.
1451 (remote_fileio_func_open, remote_fileio_func_write)
1452 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
1453 target_read_memory.
1454 (remote_fileio_func_stat): Use target_read_memory and
1455 target_write_memory.
1456 (remote_fileio_func_gettimeofday): Use target_write_memory.
1457 (remote_fileio_func_system): Use target_read_memory.
1458 * remote.c (remote_write_bytes): Make it static.
1459 (remote_read_bytes): Don't handle partial reads here.
1460 * remote.h (remote_read_bytes): Delete declaration.
1461
efc0eabd
PA
14622011-01-25 Pedro Alves <pedro@codesourcery.com>
1463
1464 Simplify XML parsing a bit.
1465
1466 * xml-support.h (gdb_xml_parse_quick): Declare.
1467 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
1468 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
1469 parameter.
1470 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
1471 gdb_xml_create_parser_and_cleanup_1.
1472 (gdb_xml_parse_quick): New.
1473 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
1474 * osdata.c (osdata_parse): Ditto.
1475 * remote.c (remote_threads_info): Ditto.
1476 * solib-target.c (solib_target_parse_libraries): Ditto.
1477 * xml-syscall.c (syscall_parse_xml): Ditto.
1478 * xml-tdesc.c (tdesc_parse_xml): Ditto.
1479
314d366a
KB
14802011-01-24 Kevin Buettner <kevinb@redhat.com>
1481
1482 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
1483 with remote-mips.o added to gdb_target_obs.
1484 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
1485
a491d753
PA
14862011-01-24 Pedro Alves <pedro@codesourcery.com>
1487
1488 * ada-valprint.c (val_print_packed_array_elements): Pass the
1489 correct struct value to val_print.
1490 (ada_val_print_1): Ditto.
1491
490f124f
PA
14922011-01-24 Pedro Alves <pedro@codesourcery.com>
1493
1494 Don't lose embedded_offset in printing routines throughout.
1495
1496 * valprint.h (val_print_array_elements): Change prototype.
1497 * valprint.c (val_print_array_elements): Add `embedded_offset'
1498 parameter, and adjust to pass it down to val_print, while passing
1499 `valaddr' or `address' unmodified. Take embedded_offset into
1500 account when checking repetitions.
1501 * c-valprint.c (c_val_print): Pass embedded_offset to
1502 val_print_array_elements instead of adjusting `valaddr' and
1503 `address'.
1504 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
1505 embedded_offset to val_print_array_elements instead of adjusting
1506 `valaddr'.
1507 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
1508 * p-valprint.c (pascal_val_print): Pass embedded_offset to
1509 val_print_array_elements and pascal_object_print_value_fields
1510 instead of adjusting `valaddr'.
1511 (pascal_object_print_value_fields): Add `offset' parameter, and
1512 adjust to use it.
1513 (pascal_object_print_value): Add `offset' parameter, and adjust to
1514 use it.
1515 (pascal_object_print_static_field): Use
1516 value_contents_for_printing/value_embedded_offset, rather than
1517 value_contents.
1518 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
1519 parameter, and adjust to use it. Use
1520 value_contents_for_printing/value_embedded_offset, rather than
1521 value_contents.
1522 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
1523 (ada_val_print_array): Add `offset' parameter, and adjust to use
1524 it.
1525 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
1526 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
1527 Instead work with offsets. Use
1528 value_contents_for_printing/value_embedded_offset, rather than
1529 value_contents. Change `defer_val_int' local type to CORE_ADDR,
1530 and use value_from_pointer to extract a target pointer, rather
1531 than value_from_longest.
1532 (print_variant_part): Add `offset' parameter. Replace
1533 `outer_valaddr' parameter by a new `outer_offset' parameter.
1534 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1535 (ada_value_print): Use
1536 value_contents_for_printing/value_embedded_offset, rather than
1537 value_contents.
1538 (print_record): Add `offset' parameter, and adjust to pass it
1539 down.
1540 (print_field_values): Add `offset' parameter. Replace
1541 `outer_valaddr' parameter by a new `outer_offset' parameter.
1542 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1543 Use value_contents_for_printing/value_embedded_offset, rather than
1544 value_contents.
1545 * d-valprint.c (dynamic_array_type): Use
1546 value_contents_for_printing/value_embedded_offset, rather than
1547 value_contents.
1548 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
1549 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1550 (java_print_value_fields): Take `offset' into account. Don't
1551 re-adjust `valaddr'. Instead pass down adjusted offsets.
1552 (java_val_print): Take `embedded_offset' into account. Pass it to
1553 java_print_value_fields.
1554 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
1555 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
1556 down adjusted offsets.
1557 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
1558 (f_val_print): Take `embedded_offset' into account.
1559
7bfc9434
JB
15602011-01-21 Joel Brobecker <brobecker@adacore.com>
1561
1562 * inflow.c: Include "gdbcmd.h".
1563 (interactive_mode): New static global, moved here from top.c.
1564 (show_interactive_mode): New function, moved here from top.c.
1565 use gdb_has_a_terminal instead of input_from_terminal_p to
1566 determine the current mode.
1567 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
1568 setting.
1569 (_initialize_inflow): Add the "set/show interactive-mode"
1570 commands. Moved here from top.c, after having adjusted slightly
1571 the help text.
1572 * top.c (interactive_mode, show_interactive_mode): Delete, moved
1573 to inflow.c.
1574 (input_from_terminal_p): Remove handling of "interactive-mode"
1575 setting, moved to infow.c.
1576 (init_main): Remove creation of the "set/show interactive-mode"
1577 commands, moved to inflow.c.
1578
44603653
JB
15792011-01-19 Joel Brobecker <brobecker@adacore.com>
1580
1581 * NEWS: Add entry for native ia64-hpux support.
1582
4694da01
TT
15832011-01-19 Tom Tromey <tromey@redhat.com>
1584
1585 PR mi/8618:
1586 * thread.c (free_thread): Free 'name'.
1587 (print_thread_info): Emit thread name. Change CLI output.
1588 (thread_name_command): New function.
1589 (do_captured_thread_select): Emit newline.
1590 (_initialize_thread): Register 'thread name' command.
1591 * target.h (struct target_ops) <to_thread_name>: New field.
1592 (target_thread_name): New macro.
1593 * target.c (update_current_target): Handle to_thread_name.
1594 * python/py-infthread.c (thpy_get_name): New function.
1595 (thpy_set_name): Likewise.
1596 (thread_object_getset): Add "name".
1597 * linux-nat.c (linux_nat_thread_name): New function.
1598 (linux_nat_add_target): Set to_thread_name.
1599 * gdbthread.h (struct thread_info) <name>: New field.
1600
10d44370
JB
16012011-01-18 Joel Brobecker <brobecker@adacore.com>
1602
1603 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
1604 (ada_val_print_1): Likewise.
1605
e3acb115
JB
16062011-01-18 Joel Brobecker <brobecker@adacore.com>
1607
1608 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
1609 upper limit address is not greater than the function end address
1610 when the upper limit could not be computed using the debugging
1611 info.
1612
dc92e161
TT
16132011-01-17 Tom Tromey <tromey@redhat.com>
1614
1615 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
1616 get_regcomp_error.
1617 * utils.c: Include gdb_regex.h.
1618 (do_regfree_cleanup): New function.
1619 (make_regfree_cleanup): Likewise.
1620 (get_regcomp_error): Likewise.
1621 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
1622
f55af66d
TT
16232011-01-17 Tom Tromey <tromey@redhat.com>
1624
1625 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
1626 re_compile_fastmap.
1627
a5a44b53
PM
16282011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1629
1630 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
1631 for internal variables.
1632 (last_was_structop): New static variable.
1633 (COMPLETE): New token.
1634 (field_exp): New rule to group all '.' suffix handling.
1635 Add mark_struct_expression calls when approriate to be able
1636 to correctly find fields for completion.
1637 (yylex): Adapt to handle field completion and set INTVAR when
1638 required.
1639
2c291032
YQ
16402011-01-14 Yao Qi <yao@codesourcery.com>
1641
1642 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
1643 save_reggroup, restore_reggroup and all_reggroup.
1644
447b483c
JB
16452011-01-14 Joel Brobecker <brobecker@adacore.com>
1646
1647 * ada-valprint. (ada_printchar): Use the correct type length
1648 in call to ada_emit_char.
1649 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
1650
7b64a93b
PM
16512011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1652
1653 * solib-som.h (hpux_major_release): Declare variable here.
1654 * solib-som.c: Remove <sys/utsname.h> header.
1655 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
1656 (hpux_major_release): Make global, change default value to
1657 DEFAULT_HPUX_MAJOR_RELEASE.
1658 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
1659 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
1660 Add "solib-som.h" header.
1661 (set_hpux_major_release): New function.
1662 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
1663
4e18c053
MF
16642011-01-14 Mike Frysinger <vapier@gentoo.org>
1665
1666 * configure.tgt (*-*-uclinux*): Match more Linux os targets
1667
a9df6b22
JB
16682011-01-14 Joel Brobecker <brobecker@adacore.com>
1669
1670 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
1671 new-line at end of warning message.
1672 (ia64_hpux_store_register): Remove trailing new-line at end of
1673 error message.
1674 * ia64-hpux-tdep.c: Rephrase comment.
1675 * solib-ia64-hpux.c (struct dld_info): Change type of field
1676 dld_flags from "long long" to ULONGEST.
1677
ecb956dd
PA
16782011-01-14 Pedro Alves <pedro@codesourcery.com>
1679
1680 * target.h (deprecated_child_ops): Delete declaration.
1681 * target.c (deprecated_child_ops): Delete definition.
1682
76adfcae
PA
16832011-01-14 Pedro Alves <pedro@codesourcery.com>
1684
1685 * Makefile.in (hpux-thread.o): Delete rule.
1686 * configure.ac: Don't check for HPUX DCE threads support.
1687 * configure, config.in: Regenerate.
1688 * hppa-hpux-nat.c (child_suppress_run): Delete.
1689 (hppa_hpux_child_can_run): Delete.
1690 (_initialize_hppa_hpux_nat): Don't override to_can_run.
1691 * hpux-thread.c: Delete.
1692
042e866e
JB
16932011-01-13 Joel Brobecker <brobecker@adacore.com>
1694
1695 * hpux-thread.c (hpux_pid_to_str): Delete.
1696
4ffa5a33
JB
16972011-01-13 Joel Brobecker <brobecker@adacore.com>
1698
1699 * ada-valprint.c (ada_emit_char): Remove strange code.
1700 Check that c is <= UCHAR_MAX before passing it to isascii.
1701 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
1702
de8fa76c
JB
17032011-01-13 Joel Brobecker <brobecker@adacore.com>
1704
1705 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
1706 to the case where instream is stdin.
1707
c4de7027
JB
17082011-01-13 Joel Brobecker <brobecker@adacore.com>
1709
1710 * ia64-tdep.h (struct regcache): Forward declare.
1711 (struct ia64_infcall_ops): New struct type.
1712 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
1713 and "infcall_ops".
1714 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
1715 Renames ia64_find_global_pointer.
1716 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
1717 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
1718 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
1719 methods.
1720 (ia64_infcall_ops): New static global constant.
1721 (ia64_gdbarch_init): Set tdep->infcall_ops.
1722 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
1723 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
1724 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
1725 (ia64_hpux_dummy_code): New static global constant.
1726 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
1727 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
1728 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
1729 New function.
1730 (ia64_hpux_infcall_ops): New static global constant.
1731 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
1732 for inferior function calls to work properly on ia64-hpux.
1733
77ca787b
JB
17342011-01-13 Joel Brobecker <brobecker@adacore.com>
1735
1736 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
1737 * ia64-tdep.h (struct frame_info): forward declaration.
1738 (struct gdbarch_tdep): Add field size_of_register_frame.
1739 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
1740 to determine the size of the register frame.
1741 (ia64_size_of_register_frame): New function.
1742 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
1743 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
1744 (IA64_HPUX_UREG_REASON): New macro.
1745 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
1746 New functions.
1747 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
1748 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
1749 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
1750 objects.
1751
92c9a463
JB
17522011-01-13 Joel Brobecker <brobecker@adacore.com>
1753
1754 Add support for ia64-hpux.
1755 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
1756 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
1757
1758 * configure.host: Add handling for ia64-hpux hosts. Add associated
1759 floatformats.
1760 * configure.tgt: Add handling for ia64-hpux targets.
1761 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
1762 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
1763 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
1764
f688d93f
JB
17652011-01-13 Joel Brobecker <brobecker@adacore.com>
1766
1767 [ttrace] Compute thread list immediately after attach.
1768 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
1769 New subprogram.
1770 (inf_ttrace_attach): Use it.
1771
1b89e62f
JB
17722011-01-13 Joel Brobecker <brobecker@adacore.com>
1773
1774 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
1775 if we could not determine the frame's function address. Instead,
1776 use the frame's PC, and then continue.
1777
3e5e6e2a
JB
17782011-01-13 Joel Brobecker <brobecker@adacore.com>
1779
1780 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
1781 not already defined.
1782
825d6d8a
JB
17832011-01-13 Joel Brobecker <brobecker@adacore.com>
1784
1785 * ia64-tdep.c (ia64_struct_type_p): New function.
1786 (ia64_extract_return_value): Handle integral values that are
1787 less than 8 bytes long.
1788 (ia64_push_dummy_call): Likewise.
1789
7458e667
JB
17902011-01-13 Joel Brobecker <brobecker@adacore.com>
1791
1792 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
1793 floatformat_ia64_ext.
1794 (floatformat_ia64_ext_big): New static const.
1795 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
1796
1b05df00
TT
17972011-01-12 Tom Tromey <tromey@redhat.com>
1798
1799 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
1800 messages.
1801 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
1802 (mi_cmd_thread_list_ids): Likewise.
1803 (mi_cmd_data_list_changed_registers): Likewise.
1804 (mi_cmd_data_list_register_values): Likewise.
1805 (mi_cmd_data_write_register_values): Likewise.
1806 (mi_cmd_data_evaluate_expression): Likewise.
1807 (mi_cmd_data_read_memory): Likewise.
1808 (mi_cmd_data_read_memory_bytes): Likewise.
1809 (mi_cmd_data_write_memory): Likewise.
1810 (mi_cmd_enable_timings): Likewise.
1811 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
1812 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
1813 (mi_cmd_var_delete): Likewise.
1814 (mi_cmd_var_set_format): Likewise.
1815 (mi_cmd_var_show_format): Likewise.
1816 (mi_cmd_var_info_num_children): Likewise.
1817 (mi_cmd_var_list_children): Likewise.
1818 (mi_cmd_var_info_type): Likewise.
1819 (mi_cmd_var_info_expression): Likewise.
1820 (mi_cmd_var_show_attributes): Likewise.
1821 (mi_cmd_var_assign): Likewise.
1822 (mi_cmd_var_update): Likewise.
1823 (mi_cmd_enable_pretty_printing): Likewise.
1824 (mi_cmd_var_set_update_range): Likewise.
1825 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
1826 messages.
1827 (mi_cmd_target_file_put): Likewise.
1828 (mi_cmd_target_file_delete): Likewise.
1829 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
1830 messages.
1831 (mi_cmd_stack_info_depth): Likewise.
1832 (mi_cmd_stack_list_locals): Likewise.
1833 (mi_cmd_stack_list_args): Likewise.
1834 (mi_cmd_stack_select_frame): Likewise.
1835 (mi_cmd_stack_select_frame): Likewise.
1836 (mi_cmd_stack_info_frame): Likewise.
1837 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
1838 messages.
1839 (mi_cmd_file_list_exec_source_files): Likewise.
1840 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
1841 (mi_cmd_env_cd): Likewise.
1842 (mi_cmd_env_path): Likewise.
1843 (mi_cmd_env_dir): Likewise.
1844 (mi_cmd_inferior_tty_show): Likewise.
1845 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
1846 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
1847 (mi_cmd_break_watch): Likewise.
1848
ad422571
TJB
18492011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
1850
1851 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
1852 (ppc_linux_insert_hw_breakpoint): Likewise.
1853 (ppc_linux_remove_hw_breakpoint): Likewise.
1854 (ppc_linux_insert_watchpoint): Likewise.
1855
c2ff108b
JK
18562011-01-12 Andrew Burgess <aburgess@broadcom.com>
1857 Jan Kratochvil <jan.kratochvil@redhat.com>
1858
1859 PR fortran/11104 and DWARF unbound arrays detection.
1860 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
1861 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
1862 unspecified upper bound.
1863 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
1864 variables array_size_array, tmp_type and offset_item. New variable
1865 array. Remove call to f77_get_upperbound. New variables array_type
1866 and index. Call value_subscripted_rvalue for each dimenasion. Remove
1867 the final call to deprecated_set_value_type.
1868
41e8491f
JK
18692011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1870
1871 Make value allocations more lazy.
1872 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
1873 instead of allocate_value and set_value_lazy when possible.
1874 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
1875 instead of allocate_value and set_value_lazy.
1876 * findvar.c (value_of_register_lazy): Likewise.
1877 (read_var_value): Remove V preallocation, call just check_typedef in
1878 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
1879 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
1880 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
1881 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
1882 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
1883 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
1884 the end, remove set_value_lazy there.
1885 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
1886 instead of allocate_value and set_value_lazy when possible.
1887 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
1888 * value.c (allocate_computed_value): Use allocate_value_lazy instead
1889 of allocate_value and set_value_lazy.
1890 (value_from_contents_and_address): Use allocate_value_lazy instead of
1891 allocate_value and set_value_lazy when possible.
1892
b716877b
AB
18932011-01-12 Andrew Burgess <aburgess@broadcom.com>
1894
1895 * disasm.c (dump_insns): Support dumping opcodes for MI.
1896 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
1897 dumping of instruction opcodes.
1898
d5ae309f
JB
18992011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
1900
1901 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
1902 appropiately.
1903
98871305
TT
19042011-01-11 Tom Tromey <tromey@redhat.com>
1905
1906 * thread.c (do_captured_thread_select): Emit newline before
1907 printing frame.
1908
c378eb4e
MS
19092011-01-11 Michael Snyder <msnyder@vmware.com>
1910
1911 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
1912 * score-tdep.c: Ditto.
1913 * score-tdep.h: Ditto.
1914 * ser-base.c: Ditto.
1915 * ser-go32.c: Ditto.
1916 * serial.c: Ditto.
1917 * serial.h: Ditto.
1918 * ser-mingw.c: Ditto.
1919 * ser-pipe.c: Ditto.
1920 * ser-tcp.c: Ditto.
1921 * ser-unix.c: Ditto.
1922 * sh64-tdep.c: Ditto.
1923 * shnbsd-nat.c: Ditto.
1924 * sh-tdep.c: Ditto.
1925 * sh-tdep.h: Ditto.
1926 * solib.c: Ditto.
1927 * solib-darwin.c: Ditto.
1928 * solib-frv.c: Ditto.
1929 * solib.h: Ditto.
1930 * solib-irix.c: Ditto.
1931 * solib-osf.c: Ditto.
1932 * solib-pa64.c: Ditto.
1933 * solib-som.c: Ditto.
1934 * solib-spu.c: Ditto.
1935 * solib-sunos.c: Ditto.
1936 * solib-svr4.c: Ditto.
1937 * solist.h: Ditto.
1938 * sol-thread.c: Ditto.
1939 * somread.c: Ditto.
1940 * source.c: Ditto.
1941 * source.h: Ditto.
1942 * sparc64-linux-tdep.c: Ditto.
1943 * sparc64-tdep.c: Ditto.
1944 * sparc-linux-nat.c: Ditto.
1945 * sparc-linux-tdep.c: Ditto.
1946 * sparc-sol2-nat.c: Ditto.
1947 * sparc-sol2-tdep.c: Ditto.
1948 * sparc-tdep.c: Ditto.
1949 * sparc-tdep.h: Ditto.
1950 * spu-tdep.c: Ditto.
1951 * stabsread.c: Ditto.
1952 * stabsread.h: Ditto.
1953 * stack.c: Ditto.
1954 * symfile.c: Ditto.
1955 * symfile.h: Ditto.
1956 * symmisc.c: Ditto.
1957 * symtab.c: Ditto.
1958 * symtab.h: Ditto.
1959 * target.c: Ditto.
1960 * target-descriptions.c: Ditto.
1961 * target-descriptions.h: Ditto.
1962 * target.h: Ditto.
1963 * target-memory.c: Ditto.
1964 * terminal.h: Ditto.
1965 * thread.c: Ditto.
1966 * top.c: Ditto.
1967 * tracepoint.c: Ditto.
1968 * tracepoint.h: Ditto.
1969 * trad-frame.h: Ditto.
1970 * typeprint.c: Ditto.
1971
581e13c1
MS
19722011-01-11 Michael Snyder <msnyder@vmware.com>
1973
1974 * ui-file.c: Comment cleanup, mostly periods and spaces.
1975 * ui-file.h: Ditto.
1976 * ui-out.c: Ditto.
1977 * ui-out.h: Ditto.
1978 * utils.c: Ditto.
1979 * v850-tdep.c: Ditto.
1980 * valarith.c: Ditto.
1981 * valops.c: Ditto.
1982 * valprint.c: Ditto.
1983 * valprint.h: Ditto.
1984 * value.c: Ditto.
1985 * value.h: Ditto.
1986 * varobj.c: Ditto.
1987 * varobj.h: Ditto.
1988 * vax-tdep.c: Ditto.
1989 * vec.c: Ditto.
1990 * vec.h: Ditto.
1991 * version.h: Ditto.
1992 * windows-nat.c: Ditto.
1993 * windows-tdep.c: Ditto.
1994 * xcoffread.c: Ditto.
1995 * xcoffsolib.c: Ditto.
1996 * xml-support.c: Ditto.
1997 * xstormy16-tdep.c: Ditto.
1998 * xtensa-tdep.c: Ditto.
1999 * xtensa-tdep.h: Ditto.
2000
90e4670f
TJB
20012011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2002
2003 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
2004 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
2005
e09342b5
TJB
20062011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2007 Thiago Jung Bauermann <bauerman@br.ibm.com>
2008
2009 Implement support for PowerPC BookE ranged watchpoints.
2010 * breakpoint.h
2011 (struct breakpoint_ops) <resources_needed>: New method.
2012 Initialize to NULL in all existing breakpoint_ops instances.
2013 (struct breakpoint) <exact>: New field.
2014 (target_exact_watchpoints): Declare external global.
2015 * breakpoint.c (target_exact_watchpoints): New global flag.
2016 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
2017 b->enable_state to bp_enabled before calling
2018 hw_watchpoint_used_count.
2019 (hw_watchpoint_used_count): Iterate over all bp_locations in a
2020 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
2021 if available.
2022 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
2023 if the watchpoint is exact.
2024 (resources_needed_watchpoint): New function.
2025 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
2026 (watch_command_1): Set b->exact if the user asked for an exact
2027 watchpoint and one can be set.
2028 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
2029 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
2030 the user asks for an exact watchpoint and one can be set. Return
2031 number of needed debug registers to watch the expression.
2032 * gdbtypes.c (is_scalar_type): New function, based on
2033 valprint.c:scalar_type_p.
2034 (is_scalar_type_recursive): New function.
2035 * gdbtypes.h (is_scalar_type_recursive): Declare.
2036 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
2037 handle regions when ranged watchpoints are available.
2038 (create_watchpoint_request): New function.
2039 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
2040 create_watchpoint_request.
2041 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
2042 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
2043 `set powerpc' and `show powerpc' commands.
2044 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
2045 Mention documentation comment in the target macro.
2046 (target_region_ok_for_hw_watchpoint): Document return value.
2047
9fa40276
TJB
20482011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2049
2050 * breakpoint.c (update_watchpoint): Decide on using a software or
2051 hardware watchpoint after the bp_locations are created.
2052
77b06cd7
TJB
20532010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2054
2055 Convert hardware watchpoints to use breakpoint_ops.
2056 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
2057 <insert_location>: ... this. Return int instead of void.
2058 Accept pointer to struct bp_location instead of pointer to
2059 struct breakpoint. Adapt all implementations.
2060 (breakpoint_ops) <remove>: Rename to...
2061 <remove_location>: ... this. Accept pointer to struct bp_location
2062 instead of pointer to struct breakpoint. Adapt all implementations.
2063 * breakpoint.c (insert_catchpoint): Delete function.
2064 (insert_bp_location): Call the watchpoint or catchpoint's
2065 breakpoint_ops.insert method.
2066 (remove_breakpoint_1): Call the watchpoint or catchpoint's
2067 breakpoint_ops.remove method.
2068 (insert_watchpoint, remove_watchpoint): New functions.
2069 (watchpoint_breakpoint_ops): New structure.
2070 (watch_command_1): Initialize the OPS field.
2071 * inf-child.c (inf_child_insert_fork_catchpoint)
2072 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
2073 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
2074 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
2075 Delete functions.
2076 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
2077 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
2078 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
2079 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
2080 * target.c (update_current_target): Change default implementation of
2081 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
2082 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
2083 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
2084 to_set_syscall_catchpoint to return_one.
2085 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
2086 (debug_to_insert_exec_catchpoint): Report return value.
2087 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
2088 (to_insert_exec_catchpoint): Change declaration to return int instead
2089 of void.
2090
9b20d036
MS
20912011-01-11 Michael Snyder <msnyder@vmware.com>
2092
2093 * arm-tdep.c: Internationalization.
2094 * c-lang.c: Ditto.
2095 * charset.c: Ditto.
2096 * fork-child.c: Ditto.
2097 * nto-procfs.c: Ditto.
2098 * ppc-sysv-tdep.c: Ditto.
2099 * procfs.c: Ditto.
2100 * remote-mips.c: Ditto.
2101 * remote.c: Ditto.
2102 * rs6000-nat.c: Ditto.
2103 * rs6000-tdep.c: Ditto.
2104 * target.c: Ditto.
2105 * valops.c: Ditto.
2106 * value.c: Ditto.
2107 * xml-support.c: Ditto.
2108 * mi/mi-cmd-break.c: Ditto.
2109 * mi/mi-cmd-var.c: Ditto.
2110 * mi/mi-interp.c: Ditto.
2111 * mi/mi-main.c: Ditto.
2112
dae477fe
AB
21132011-01-11 Andrew Burgess <aburgess@broadcom.com>
2114
2115 * remote-sim.c (gdbsim_store_register): Update API to
2116 sim_store_register to check more error conditions.
2117
0df8b418
MS
21182011-01-10 Michael Snyder <msnyder@vmware.com>
2119
2120 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
2121 * nto-tdep.c: Ditto.
2122 * nto-tdep.h: Ditto.
2123 * objc-exp.y: Ditto.
2124 * objc-lang.c: Ditto.
2125 * objfiles.c: Ditto.
2126 * objfiles.h: Ditto.
2127 * observer.c: Ditto.
2128 * opencl-lang.c: Ditto.
2129 * osabi.c: Ditto.
2130 * parse.c: Ditto.
2131 * parser-defs.h: Ditto.
2132 * p-exp.y: Ditto.
2133 * p-lang.c: Ditto.
2134 * posix-hdep.c: Ditto.
2135 * ppcbug-rom.c: Ditto.
2136 * ppc-linux-nat.c: Ditto.
2137 * ppc-linux-tdep.c: Ditto.
2138 * ppc-linux-tdep.h: Ditto.
2139 * ppcnbsd-tdep.c: Ditto.
2140 * ppcobsd-tdep.c: Ditto.
2141 * ppcobsd-tdep.h: Ditto.
2142 * ppc-sysv-tdep.c: Ditto.
2143 * ppc-tdep.h: Ditto.
2144 * printcmd.c: Ditto.
2145 * proc-abi.c: Ditto.
2146 * proc-flags.c: Ditto.
2147 * procfs.c: Ditto.
2148 * proc-utils.h: Ditto.
2149 * progspace.h: Ditto.
2150 * prologue-value.c: Ditto.
2151 * prologue-value.h: Ditto.
2152 * psympriv.h: Ditto.
2153 * psymtab.c: Ditto.
2154 * p-typeprint.c: Ditto.
2155 * p-valprint.c: Ditto.
2156 * ravenscar-sparc-thread.c: Ditto.
2157 * ravenscar-thread.c: Ditto.
2158 * ravenscar-thread.h: Ditto.
2159 * record.c: Ditto.
2160 * regcache.c: Ditto.
2161 * regcache.h: Ditto.
2162 * remote.c: Ditto.
2163 * remote-fileio.c: Ditto.
2164 * remote-fileio.h: Ditto.
2165 * remote.h: Ditto.
2166 * remote-m32r-sdi.c: Ditto.
2167 * remote-mips.c: Ditto.
2168 * remote-sim.c: Ditto.
2169 * rs6000-aix-tdep.c: Ditto.
2170 * rs6000-nat.c: Ditto.
2171 * rs6000-tdep.c: Ditto.
2172
0d7a18f7
MS
21732011-01-10 Michael Snyder <msnyder@vmware.com>
2174
2175 * charset.c (validate): Internationalization.
2176 * coffread.c (read_one_sym): Ditto.
2177 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
2178 * h8300-tdep.c (H8300_extract_return_value): Ditto.
2179 * inflow.c (new_tty): Ditto.
2180 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
2181 * m32c-tdep.c (m32c_return_value): Ditto.
2182 * mep-tdep.c (mep_store_return_value): Ditto.
2183 * score-tdep.c (score7_fetch_insn): Ditto.
2184 * ser-mingw.c (pipe_windows_open): Ditto.
2185 * sh64-tdep.c (sh64_extract_return_value): Ditto.
2186 * spu-tdep.c (spu_register_type): Ditto.
2187 * tracepoint.c (trace_find_command): Ditto.
2188 * valarith.c (value_pos): Ditto.
2189
9a153e0b
JB
21902011-01-10 Joel Brobecker <brobecker@adacore.com>
2191
2192 * ada-valprint.c (printstr): Minor comment reformatting.
2193
35ecd2d6
MS
21942011-01-08 Michael Snyder <msnyder@vmware.com>
2195
2196 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
2197 markup.
2198
1777feb0
MS
21992011-01-08 Michael Snyder <msnyder@vmware.com>
2200
2201 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
2202 * hppa-hpux-tdep.c: Ditto.
2203 * hppa-linux-nat.c: Ditto.
2204 * hppa-linux-tdep.c: Ditto.
2205 * hppanbsd-tdep.c: Ditto.
2206 * hppa-tdep.c: Ditto.
2207 * hppa-tdep.h: Ditto.
2208 * hpux-thread.c: Ditto.
2209 * i386-cygwin-tdep.c: Ditto.
2210 * i386-darwin-nat.c: Ditto.
2211 * i386gnu-nat.c: Ditto.
2212 * i386-linux-nat.c: Ditto.
2213 * i386-linux-tdep.c: Ditto.
2214 * i386-nat.c: Ditto.
2215 * i386-nat.h: Ditto.
2216 * i386nbsd-tdep.c: Ditto.
2217 * i386-sol2-nat.c: Ditto.
2218 * i386-stub.c: Ditto.
2219 * i386-tdep.c: Ditto.
2220 * i386-tdep.h: Ditto.
2221 * i387-tdep.c: Ditto.
2222 * ia64-linux-nat.c: Ditto.
2223 * ia64-linux-tdep.c: Ditto.
2224 * ia64-tdep.c: Ditto.
2225 * infcall.c: Ditto.
2226 * infcall.h: Ditto.
2227 * infcmd.c: Ditto.
2228 * inferior.c: Ditto.
2229 * inferior.h: Ditto.
2230 * infloop.c: Ditto.
2231 * inflow.c: Ditto.
2232 * infrun.c: Ditto.
2233 * interps.c: Ditto.
2234 * interps.h: Ditto.
2235 * iq2000-tdep.c: Ditto.
2236 * irix5-nat.c: Ditto.
2237 * jit.c: Ditto.
2238 * jit.h: Ditto.
2239 * jv-exp.y: Ditto.
2240 * jv-lang.c: Ditto.
2241 * jv-lang.h: Ditto.
2242 * jv-typeprint.c: Ditto.
2243 * jv-valprint.c: Ditto.
2244 * language.c: Ditto.
2245 * language.h: Ditto.
2246 * linespec.c: Ditto.
2247 * linux-fork.c: Ditto.
2248 * linux-nat.c: Ditto.
2249 * linux-thread-db.c: Ditto.
2250 * lm32-tdep.c: Ditto.
2251
025bb325
MS
22522011-01-08 Michael Snyder <msnyder@vmware.com>
2253
2254 * m2-exp.y: Comment cleanup, mostly periods and spaces.
2255 * m2-lang.c: Ditto.
2256 * m2-typeprint.c: Ditto.
2257 * m2-valprint.c: Ditto.
2258 * m32c-tdep.c: Ditto.
2259 * m32r-linux-nat.c: Ditto.
2260 * m32r-rom.c: Ditto.
2261 * m32r-tdep.c: Ditto.
2262 * m32r-tdep.h: Ditto.
2263 * m68hc11-tdep.c: Ditto.
2264 * m58klinux-nat.c: Ditto.
2265 * m68k-tdep.c: Ditto.
2266 * m88k-tdep.c: Ditto.
2267 * m88k-tdep.h: Ditto.
2268 * machoread.c: Ditto.
2269 * macrocmd.c: Ditto.
2270 * macroexp.c: Ditto.
2271 * macrotab.c: Ditto.
2272 * main.c: Ditto.
2273 * maint.c: Ditto.
2274 * mdebugread.c: Ditto.
2275 * mdebugread.h: Ditto.
2276 * memattr.c: Ditto.
2277 * memattr.h: Ditto.
2278 * memory-map.h: Ditto.
2279 * mep-tdep.c: Ditto.
2280 * microblaze-rom.c: Ditto.
2281 * microblaze-tdep.c: Ditto.
2282 * minsyms.c: Ditto.
2283 * mips-irix-tdep.c: Ditto.
2284 * mips-linux-nat.c: Ditto.
2285 * mips-linux-tdep.c: Ditto.
2286 * mips-linux-tdep.h: Ditto.
2287 * mipsnbsd-nat.c: Ditto.
2288 * mipsnbsd-tdep.c: Ditto.
2289 * mipsread.c: Ditto.
2290 * mips-tdep.c: Ditto.
2291 * mips-tdep.h: Ditto.
2292 * mn10300-linux-tdep.c: Ditto.
2293 * mn10300-tdep.c: Ditto.
2294 * mn10300-tdep.h: Ditto.
2295 * monitor.c: Ditto.
2296 * monitor.h: Ditto.
2297 * moxie-tdep.c: Ditto.
2298 * moxie-tdep.h: Ditto.
2299 * mt-tdep.c: Ditto.
2300
1642781b
MF
23012011-01-08 Mike Frysinger <vapier@gentoo.org>
2302
2303 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
2304
394b0adb
JB
23052011-01-08 Robert Millan <rmh@gnu.org>
2306
2307 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
2308
b670013c
MS
23092011-01-07 Michael Snyder <msnyder@vmware.com>
2310
2311 * charset.c (_initialize_charset): Fix typo in string.
2312
a743e542
MS
23132011-01-07 Michael Snyder <msnyder@vmware.com>
2314
2315 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
2316 for i18n.
2317 * tui/tui-layout.c (tui_set_layout_for_display_command):
2318 Split line so that operator goes to beginning of line.
2319 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
2320 assignment out of if statement.
2321
0963b4bd
MS
23222011-01-07 Michael Snyder <msnyder@vmware.com>
2323
2324 * ada-lang.c: Comment cleanup, mostly periods and spaces.
2325 * ada-lang.h: Ditto.
2326 * ada-tasks.c: Ditto.
2327 * ada-valprint.c: Ditto.
2328 * aix-threads.c: Ditto.
2329 * alpha-linux-nat.c: Ditto.
2330 * alpha-linux-tdep.c: Ditto.
2331 * alpha-mdebug-tdep.c: Ditto.
2332 * alpha-nat.c: Ditto.
2333 * alpha-osf1-tdep.c: Ditto.
2334 * alpha-tdep.c: Ditto.
2335 * alphabsd-nat.c: Ditto.
2336 * alphabsd-tdep.c: Ditto.
2337 * amd64-darwin-tdep.c: Ditto.
2338 * amd64-linux-nat.c: Ditto.
2339 * amd64-linux-tdep.c: Ditto.
2340 * amd64-sol2-tdep.c: Ditto.
2341 * amd64-tdep.c: Ditto.
2342 * amd64-fbsd-tdep.c: Ditto.
2343 * amd64-nbsd-tdep.c: Ditto.
2344 * amd64-obsd-tdep.c: Ditto.
2345 * amd64-linux-nat.c: Ditto.
2346 * amd64-linux-tdep.c: Ditto.
2347 * arm-tdep.c: Ditto.
2348 * arm-tdep.h: Ditto.
2349 * armnbsd-nat.c: Ditto.
2350 * avr-tdep.c: Ditto.
2351 * bfin-tdep.c: Ditto.
2352 * bsd-kvm.c: Ditto.
2353 * c-typeprintc: Ditto.
2354 * c-valprint.c: Ditto.
2355 * coff-pe-read.h: Ditto.
2356 * coffreead.c: Ditto.
2357 * cris-tdep.c: Ditto.
2358 * d-lang.c: Ditto.
2359 * darwin-nat-info.c: Ditto.
2360 * darwin-nat.c: Ditto.
2361 * dbug-rom.c: Ditto.
2362 * dbxread.c: Ditto.
2363 * dcache.c: Ditto.
2364 * dcache.h: Ditto.
2365 * dec-thread.c: Ditto.
2366 * defs.h: Ditto.
2367 * demangle.c: Ditto.
2368 * dicos-tdep.c: Ditto.
2369 * dictionary.c: Ditto.
2370 * dictionary.h: Ditto.
2371 * dink32-rom.c: Ditto.
2372 * disasm.c: Ditto.
2373 * doublest.c: Ditto.
2374 * dsrec.c: Ditto.
2375 * dummy-frame.c: Ditto.
2376 * dwarf2-frame.c: Ditto.
2377 * dwarf2expr.c: Ditto.
2378 * dwarf2loc.c: Ditto.
2379 * dwarf2read.c: Ditto.
2380 * elfread.c: Ditto.
2381 * environ.c: Ditto.
2382 * eval.c: Ditto.
2383 * event-top.h: Ditto.
2384 * exceptions.c: Ditto.
2385 * exceptions.h: Ditto.
2386 * exec.c: Ditto.
2387 * expprint.c: Ditto.
2388 * expression.h: Ditto.
2389 * f-exp.y: Ditto.
2390 * f-lang.c: Ditto.
2391 * f-lang.h: Ditto.
2392 * f-typeprint.c: Ditto.
2393 * f-valprint.c: Ditto.
2394 * fbsd-nat.c: Ditto.
2395 * findvar.c: Ditto.
2396 * fork-child.c: Ditto.
2397 * frame.c: Ditto.
2398 * frame.h: Ditto.
2399 * frv-linux-tdep.c: Ditto.
2400 * frv-tdep.c: Ditto.
2401 * gcore.c: Ditto.
2402 * gdb-stabs.h: Ditto.
2403 * gdb_assert.h: Ditto.
2404 * gdb_string.h: Ditto.
2405 * gdb_thread_db.h: Ditto.
2406 * gdb_wait.h: Ditto.
2407 * gdbarch.sh: Ditto.
2408 * gdbcore.h: Ditto.
2409 * gdbthread.h: Ditto.
2410 * gdbtypes.c: Ditto.
2411 * gdbtypes.h: Ditto.
2412 * gnu-nat.c: Ditto.
2413 * gnu-nat.h: Ditto.
2414 * gnu-v2-abi.c: Ditto.
2415 * gnu-v3-abi.c: Ditto.
2416 * go32-nat.c: Ditto.
2417 * gdbarch.c: Regenerate.
2418 * gdbarch.h: Regenerate.
2419
ac74f770
MS
24202011-01-07 Michael Snyder <msnyder@vmware.com>
2421
2422 * ax-gdb.c: Adjust some long output strings.
2423 * breakpoint.c: Ditto.
2424 * charset.c: Ditto.
2425 * cp-abi.c: Ditto.
2426 * infcall.c: Ditto.
2427 * infrun.c: Ditto.
2428 * linux-nat.c: Ditto.
2429 * solib-pa64.c: Ditto.
2430 * solib-som.c: Ditto.
2431
d8e22779
TT
24322011-01-06 Tom Tromey <tromey@redhat.com>
2433
2434 PR python/12367:
2435 * NEWS: Add item.
2436 * python/python.c (GdbMethods): Add "newest_frame" method.
2437 * python/python-internal.h (gdbpy_newest_frame): Declare.
2438 * python/py-frame.c (gdbpy_newest_frame): New function.
2439
a255712f
PP
24402010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2441
2442 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
2443 * jit.c (jit_debug): New variable.
2444 (show_jit_debug): New function.
2445 (struct target_buffer): Use ULONGEST.
2446 (bfd_open_from_target_memory): Likewise.
2447 (jit_register_code, jit_inferior_init): Add debug output.
2448 (_initialize_jit): Register "debug jit" command.
2449
ccfc3d6e
TT
24502011-01-06 Tom Tromey <tromey@redhat.com>
2451
2452 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
2453 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
2454 and ARCH_FRAME.
2455
57126e4a
TT
24562011-01-06 Tom Tromey <tromey@redhat.com>
2457
2458 * python/py-frame.c (frapy_block): Use get_frame_block.
2459
16dfc9ce
JB
24602011-01-06 Joel Brobecker <brobecker@adacore.com>
2461
2462 Do not stop on SIGPRIO signals by default
2463 * infrun.c (_initialize_infrun): Unset signal_stop and
2464 signal_print for TARGET_SIGNAL_PRIO.
2465
b1ce2347
JB
24662011-01-06 Joel Brobecker <brobecker@adacore.com>
2467
2468 * ada-tasks.c: Fix style violation in comment.
2469
8f7e195f
JB
24702011-01-06 Joel Brobecker <brobecker@adacore.com>
2471
2472 * linespec.c (decode_compound, find_method): Remove trailing \n
2473 at end of error string.
2474 * solib-irix.c (irix_current_sos): Likewise.
2475 * varobj.c (uninstall_variable): Likewise.
2476
e9bdf92c
JB
24772011-01-06 Joel Brobecker <brobecker@adacore.com>
2478
2479 * copyright.py: New script.
2480 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
2481 Launch emacs without exec'ing. Call copyright.py afterwards.
2482
3e43a32a
MS
24832011-01-05 Michael Snyder <msnyder@vmware.com>
2484
2485 * addrmap.c: Shorten lines of >= 80 columns.
2486 * arch-utils.c: Ditto.
2487 * arch-utils.h: Ditto.
2488 * ax-gdb.c: Ditto.
2489 * ax-general.c: Ditto.
2490 * bcache.c: Ditto.
2491 * blockframe.c: Ditto.
2492 * breakpoint.c: Ditto.
2493 * buildsym.c: Ditto.
2494 * c-lang.c: Ditto.
2495 * c-typeprint.c: Ditto.
2496 * charset.c: Ditto.
2497 * coffread.c: Ditto.
2498 * command.h: Ditto.
2499 * corelow.c: Ditto.
2500 * cp-abi.c: Ditto.
2501 * cp-namespace.c: Ditto.
2502 * cp-support.c: Ditto.
2503 * dbug-rom.c: Ditto.
2504 * dbxread.c: Ditto.
2505 * defs.h: Ditto.
2506 * dfp.c: Ditto.
2507 * dfp.h: Ditto.
2508 * dictionary.c: Ditto.
2509 * disasm.c: Ditto.
2510 * doublest.c: Ditto.
2511 * dwarf2-frame.c: Ditto.
2512 * dwarf2expr.c: Ditto.
2513 * dwarf2loc.c: Ditto.
2514 * dwarf2read.c: Ditto.
2515 * elfread.c: Ditto.
2516 * eval.c: Ditto.
2517 * event-loop.c: Ditto.
2518 * event-loop.h: Ditto.
2519 * exceptions.h: Ditto.
2520 * exec.c: Ditto.
2521 * expprint.c: Ditto.
2522 * expression.h: Ditto.
2523 * f-lang.c: Ditto.
2524 * f-valprint.c: Ditto.
2525 * findcmd.c: Ditto.
2526 * frame-base.c: Ditto.
2527 * frame-unwind.c: Ditto.
2528 * frame-unwind.h: Ditto.
2529 * frame.c: Ditto.
2530 * frame.h: Ditto.
2531 * gcore.c: Ditto.
2532 * gdb-stabs.h: Ditto.
2533 * gdb_assert.h: Ditto.
2534 * gdb_dirent.h: Ditto.
2535 * gdb_obstack.h: Ditto.
2536 * gdbcore.h: Ditto.
2537 * gdbtypes.c: Ditto.
2538 * gdbtypes.h: Ditto.
2539 * inf-ttrace.c: Ditto.
2540 * infcall.c: Ditto.
2541 * infcmd.c: Ditto.
2542 * inflow.c: Ditto.
2543 * infrun.c: Ditto.
2544 * inline-frame.h: Ditto.
2545 * language.c: Ditto.
2546 * language.h: Ditto.
2547 * libunwind-frame.c: Ditto.
2548 * libunwind-frame.h: Ditto.
2549 * linespec.c: Ditto.
2550 * linux-nat.c: Ditto.
2551 * linux-nat.h: Ditto.
2552 * linux-thread-db.c: Ditto.
2553 * machoread.c: Ditto.
2554 * macroexp.c: Ditto.
2555 * macrotab.c: Ditto.
2556 * main.c: Ditto.
2557 * maint.c: Ditto.
2558 * mdebugread.c: Ditto.
2559 * memattr.c: Ditto.
2560 * minsyms.c: Ditto.
2561 * monitor.c: Ditto.
2562 * monitor.h: Ditto.
2563 * objfiles.c: Ditto.
2564 * objfiles.h: Ditto.
2565 * osabi.c: Ditto.
2566 * p-typeprint.c: Ditto.
2567 * p-valprint.c: Ditto.
2568 * parse.c: Ditto.
2569 * printcmd.c: Ditto.
2570 * proc-events.c: Ditto.
2571 * procfs.c: Ditto.
2572 * progspace.c: Ditto.
2573 * progspace.h: Ditto.
2574 * psympriv.h: Ditto.
2575 * psymtab.c: Ditto.
2576 * record.c: Ditto.
2577 * regcache.c: Ditto.
2578 * regcache.h: Ditto.
2579 * remote-fileio.c: Ditto.
2580 * remote.c: Ditto.
2581 * ser-mingw.c: Ditto.
2582 * ser-tcp.c: Ditto.
2583 * ser-unix.c: Ditto.
2584 * serial.c: Ditto.
2585 * serial.h: Ditto.
2586 * solib-frv.c: Ditto.
2587 * solib-irix.c: Ditto.
2588 * solib-osf.c: Ditto.
2589 * solib-pa64.c: Ditto.
2590 * solib-som.c: Ditto.
2591 * solib-sunos.c: Ditto.
2592 * solib-svr4.c: Ditto.
2593 * solib-target.c: Ditto.
2594 * solib.c: Ditto.
2595 * somread.c: Ditto.
2596 * source.c: Ditto.
2597 * stabsread.c: Ditto.
2598 * stabsread.c: Ditto.
2599 * stack.c: Ditto.
2600 * stack.h: Ditto.
2601 * symfile-mem.c: Ditto.
2602 * symfile.c: Ditto.
2603 * symfile.h: Ditto.
2604 * symmisc.c: Ditto.
2605 * symtab.c: Ditto.
2606 * symtab.h: Ditto.
2607 * target-descriptions.c: Ditto.
2608 * target-memory.c: Ditto.
2609 * target.c: Ditto.
2610 * target.h: Ditto.
2611 * terminal.h: Ditto.
2612 * thread.c: Ditto.
2613 * top.c: Ditto.
2614 * tracepoint.c: Ditto.
2615 * tracepoint.h: Ditto.
2616 * ui-file.c: Ditto.
2617 * ui-file.h: Ditto.
2618 * ui-out.h: Ditto.
2619 * user-regs.c: Ditto.
2620 * user-regs.h: Ditto.
2621 * utils.c: Ditto.
2622 * valarith.c: Ditto.
2623 * valops.c: Ditto.
2624 * valprint.c: Ditto.
2625 * valprint.h: Ditto.
2626 * value.c: Ditto.
2627 * varobj.c: Ditto.
2628 * varobj.h: Ditto.
2629 * vec.h: Ditto.
2630 * xcoffread.c: Ditto.
2631 * xcoffsolib.c: Ditto.
2632 * xcoffsolib.h: Ditto.
2633 * xml-syscall.c: Ditto.
2634 * xml-tdesc.c: Ditto.
2635
9a2b4c1b
MS
26362011-01-05 Michael Snyder <msnyder@vmware.com>
2637
2638 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
2639 * cli/cli-decode.c: Ditto.
2640 * cli/cli-dump.c: Ditto.
2641 * cli/cli-logging.c: Ditto.
2642 * cli/cli-script.c: Ditto.
2643 * cli/cli-setshow.c: Ditto.
2644 * common/signals.c: Ditto.
2645 * mi/mi-cmd-break.c: Ditto.
2646 * mi/mi-cmd-disas.c: Ditto.
2647 * mi/mi-cmd-stack.c: Ditto.
2648 * mi/mi-cmd-var.c: Ditto.
2649 * mi/mi-cmds.c: Ditto.
2650 * mi/mi-common.h: Ditto.
2651 * mi/mi-console.c: Ditto.
2652 * mi/mi-interp.c: Ditto.
2653 * mi/mi-main.c: Ditto.
2654 * osf-share/cma_attr.c: Ditto.
2655 * osf-share/cma_deb_core.h: Ditto.
2656 * osf-share/cma_debug_client.h: Ditto.
2657 * osf-share/cma_handle.h: Ditto.
2658 * osf-share/cma_mutex.h: Ditto.
2659 * osf-share/cma_stack_int.h: Ditto.
2660 * osf-share/cma_tcb_defs.h: Ditto.
2661 * python/py-auto-load.c: Ditto.
2662 * python/py-breakpoint.c: Ditto.
2663 * python/py-cmd.c: Ditto.
2664 * python/py-frame.c: Ditto.
2665 * python/py-objfile.c: Ditto.
2666 * python/py-param.c: Ditto.
2667 * python/py-progspace.c: Ditto.
2668 * python/py-symbol.c: Ditto.
2669 * python/py-value.c: Ditto.
2670 * python/python-internal.h: Ditto.
2671 * python/python.c: Ditto.
2672 * tui/tui-data.c: Ditto.
2673 * tui/tui-disasm.c: Ditto.
2674 * tui/tui-hooks.c: Ditto.
2675 * tui/tui-io.c: Ditto.
2676 * tui/tui-layout.c: Ditto.
2677 * tui/tui-regs.c: Ditto.
2678 * tui/tui-source.c: Ditto.
2679 * tui/tui-stack.c: Ditto.
2680 * tui/tui-win.c: Ditto.
2681 * tui/tui-windata.c: Ditto.
2682 * tui/tui-winsource.c: Ditto.
2683
44944448
JB
26842011-01-05 Joel Brobecker <brobecker@adacore.com>
2685
2686 * configure.ac, gdb.1: Copyright year update.
2687
ebedcab5
JK
26882011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2689
2690 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
2691 this_pc_in_block, morestack_msym and morestack_name. Check for
2692 "__morestack" minimal symbol there.
2693
e5cc9f32
JB
26942011-01-03 Joel Brobecker <brobecker@adacore.com>
2695
2696 * symfile.c (find_sym_fns): Add call to dont_repeat.
2697
7b6bb8da
JB
26982011-01-01 Joel Brobecker <brobecker@adacore.com>
2699
2700 Copyright year update in most files (performed by copyright.sh).
2701
71ce852c
JB
27022011-01-01 Joel Brobecker <brobecker@adacore.com>
2703
2704 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 2705
c3c1ebe8 2706For older changes see ChangeLog-2010.
c906108c
SS
2707\f
2708Local Variables:
2709mode: change-log
2710left-margin: 8
2711fill-column: 74
2712version-control: never
57da7796 2713coding: utf-8
c906108c 2714End: