gdb/
[binutils-gdb.git] / gdb / ChangeLog
1 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * Makefile.in (RDYNAMIC): New.
4 (SFILES): Add proc-service.list.
5 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
6 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
7 * config/arm/linux.mh: Likewise.
8 * config/i386/linux.mh: Likewise.
9 * config/i386/linux64.mh: Likewise.
10 * config/ia64/linux.mh: Likewise.
11 * config/m32r/linux.mh: Likewise.
12 * config/m68k/linux.mh: Likewise.
13 * config/mips/linux.mh: Likewise.
14 * config/pa/linux.mh: Likewise.
15 * config/powerpc/linux.mh: Likewise.
16 * config/powerpc/ppc64-linux.mh: Likewise.
17 * config/s390/s390.mh: Likewise.
18 * config/sparc/linux.mh: Likewise.
19 * config/sparc/linux64.mh: Likewise.
20 * config/xtensa/linux.mh: Likewise.
21 * configure.ac: New RDYNAMIC on native host and GCC.
22 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
23 * configure: Regenerate.
24 * proc-service.list: New.
25
26 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
27
28 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
29 CONTENT.
30
31 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
32
33 * linux-nat.c (linux_nat_wait_1): Do not call
34 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
35 TARGET_WAITKIND_SIGNALLED.
36
37 2010-05-27 Joel Brobecker <brobecker@adacore.com>
38
39 * ada-lang.c (ada_inferior_data): New struct.
40 (ada_inferior_data): New static global.
41 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
42 (ada_get_tsd_type): New functions.
43 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
44 to look the tsd type up.
45 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
46 event. Set ada_inferior_data.
47
48 2010-05-27 Pedro Alves <pedro@codesourcery.com>
49
50 * remote.c (unpack_varlen_hex): Remove forward declaration.
51 (remote_console_output): Make static, and add forward declaration.
52 * remote.h: Drop FIXME comment.
53 (unpack_varlen_hex): Declare.
54 (remote_console_output, remote_cisco_objfile_relocate)
55 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
56 Delete declarations.
57 * tracepoint.c: Include "remote.h".
58 (unpack_varlen_hex): Delete declaration.
59
60 2010-05-27 Tom Tromey <tromey@redhat.com>
61
62 * dwarf2loc.c (struct piece_closure) <refc>: New field.
63 (allocate_piece_closure): Initialize refc.
64 (copy_pieced_value_closure): Use refc.
65 (free_pieced_value_closure): Likewise.
66
67 2010-05-27 Tom Tromey <tromey@redhat.com>
68
69 * arm-tdep.c (push_stack_item): 'contents' now const.
70 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
71 value_contents_writeable. Introduce new temporary.
72
73 2010-05-27 Tom Tromey <tromey@redhat.com>
74
75 * findcmd.c (parse_find_args): Use value_contents, not
76 value_contents_raw.
77
78 2010-05-27 Tom Tromey <tromey@redhat.com>
79
80 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
81 const. Use value_contents, not value_contents_writeable.
82
83 2010-05-27 Joel Brobecker <brobecker@adacore.com>
84
85 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
86 by call to value_contents.
87
88 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
89
90 * MAINTAINERS: Add myself for write after approval privileges.
91
92 2010-05-26 Doug Evans <dje@google.com>
93
94 Allow python to find its files if moved from original location.
95 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
96 (GDB_AC_WITH_DIR): Call it.
97 * configure.ac: Define WITH_PYTHON_PATH if we can find the
98 python installation directory.
99 * config.in: Regenerate.
100 * configure: Regenerate.
101 * defs.h (python_libdir): Declare.
102 * main.c (python_libdir): Define.
103 (captured_main): Initialize python_libdir.
104 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
105 call Py_SetProgramName to make sure python can find its libraries
106 and modules.
107
108 * configure.ac: Try to use python's distutils to fetch compilation
109 parameters.
110 * configure: Regenerate.
111 * python/python-config.py: New file.
112
113 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
114
115 * ser-tcp.c (net_open): Check error return from socket() call by its
116 equality to -1 not by it being negative.
117 (net_close): Likewise.
118
119 2010-05-26 Pedro Alves <pedro@codesourcery.com>
120
121 * NEWS: Mention the `qRelocInsn' feature.
122 * gdbarch.sh (relocate_instruction): New.
123 * amd64-tdep.c (rip_relative_offset): New.
124 (append_insns): New.
125 (amd64_relocate_instruction): New.
126 (amd64_init_abi): Install it.
127 * i386-tdep.c (append_insns): New.
128 (i386_relocate_instruction): New.
129 (i386_gdbarch_init): Install it.
130 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
131 * gdbarch.h, gdbarch.c: Regenerate.
132
133 2010-05-26 Tom Tromey <tromey@redhat.com>
134
135 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
136 (struct dwarf2_loclist_baton) <data>: Likewise.
137 * dwarf2loc.c (find_location_expression): Constify return type.
138 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
139 (dwarf2_loc_desc_needs_frame): Likewise.
140 (loclist_read_variable): Constify.
141 (loclist_describe_location): Likewise.
142 (loclist_tracepoint_var_ref): Likewise.
143
144 2010-05-25 Tom Tromey <tromey@redhat.com>
145
146 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
147 (dwarf_expr_frame_base_1): Likewise.
148 (read_pieced_value): Update.
149 (needs_frame_frame_base): Constify.
150 (dwarf2_tracepoint_var_loc): Likewise.
151 (dwarf2_tracepoint_var_access): Likewise.
152 (locexpr_describe_location_piece): Likewise.
153 (locexpr_describe_location_1): Likewise.
154 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
155 Constify.
156 (data): Now const.
157 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
158 (dwarf_expr_eval, read_uleb128, read_sleb128)
159 (dwarf2_read_address): Update.
160 * dwarf2expr.c (dwarf_expr_eval): Constify.
161 (read_uleb128): Likewise.
162 (read_sleb128): Likewise.
163 (dwarf2_read_address): Likewise.
164 (require_composition): Likewise.
165 (execute_stack_op): Likewise.
166 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
167 "const gdb_byte *".
168 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
169 Now const.
170 (no_get_frame_base): Constify.
171 (execute_stack_op): Likewise.
172 (execute_cfa_program): Likewise.
173 (read_encoded_value): Likewise.
174
175 2010-05-25 Doug Evans <dje@google.com>
176
177 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
178
179 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
180 * event-loop.c: ... here.
181 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
182 `error' for clarity.
183 (tui_getc): Pass correct value for `error' parameter to
184 tui_readline_output.
185
186 Add python gdb.GdbError and gdb.string_to_argv.
187 * NEWS: Document them.
188 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
189 the exception is gdb.GdbError. Print a second traceback if there's
190 an error computing the error message.
191 (gdbpy_string_to_argv): New function.
192 * python/py-utils.c (gdbpy_obj_to_string): New function.
193 (gdbpy_exception_to_string): New function.
194 * python/python-internal.h (gdbpy_string_to_argv): Declare.
195 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
196 (gdbpy_gdberror_exc): Declare.
197 * python/python.c (gdbpy_gdberror_exc): New global.
198 (_initialize_python): Initialize gdbpy_gdberror_exc and create
199 gdb.GdbError.
200 (GdbMethods): Add string_to_argv.
201
202 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
203
204 * windows-nat.c (display_selector): Call GetLastError to give better
205 failure explanation.
206
207 2010-05-24 Pedro Alves <pedro@codesourcery.com>
208
209 * config.in: Regenerate.
210
211 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
212
213 Code cleanup.
214 * target.c (push_target): Return only void. Remove the return value
215 comment.
216 * target.h (push_target): Return only void.
217
218 2010-05-23 Pedro Alves <pedro@codesourcery.com>
219
220 Update gnulib from latest git.
221 (250b80067c1e1d8faa0c42fb572f721975b929c5)
222
223 * gnulib/memcmp.c: Removed.
224 * gnulib/memchr.valgrind: New.
225 * gnulib/stddef.in.h: New.
226 * gnulib/Makefile.am: Updated.
227 * gnulib/memchr.c: Updated.
228 * gnulib/memmem.c: Updated.
229 * gnulib/stdint.in.h: Updated.
230 * gnulib/str-two-way.h: Updated.
231 * gnulib/string.in.h: Updated.
232 * gnulib/wchar.in.h: Updated.
233
234 * gnulib/extra/link-warning.h: Removed.
235 * gnulib/extra/c++defs.h: New.
236 * gnulib/extra/warn-on-use.h: New.
237 * gnulib/extra/arg-nonnull.h: Updated.
238
239 * gnulib/m4/extensions.m4: Updated.
240 * gnulib/m4/gnulib-cache.m4: Updated.
241 * gnulib/m4/gnulib-common.m4: Updated.
242 * gnulib/m4/gnulib-comp.m4: Updated.
243 * gnulib/m4/gnulib-tool.m4: Updated.
244 * gnulib/m4/include_next.m4: Updated.
245 * gnulib/m4/longlong.m4: Updated.
246 * gnulib/m4/memchr.m4: Updated.
247 * gnulib/m4/memmem.m4: Updated.
248 * gnulib/m4/stdint.m4: Updated.
249 * gnulib/m4/string_h.m4: Updated.
250 * gnulib/m4/memcmp.m4: Removed.
251 * gnulib/m4/onceonly_2_57.m4: Removed.
252 * gnulib/m4/00gnulib.m4: New.
253 * gnulib/m4/mmap-anon.m4: New.
254 * gnulib/m4/multiarch.m4: New.
255 * gnulib/m4/onceonly.m4: New.
256 * gnulib/m4/stddef_h.m4: New.
257 * gnulib/m4/warn-on-use.m4: New.
258 * gnulib/m4/wchar.m4: Removed.
259 * gnulib/m4/wchar_h.m4: New.
260 * gnulib/m4/wchar_t.m4: New.
261 * gnulib/m4/wint_t.m4: New.
262
263 * aclocal.m4: Regenerate.
264 * config.in: Likewise.
265 * configure: Likewise.
266 * gnulib/Makefile.in: Likewise.
267
268 2010-05-21 Tom Tromey <tromey@redhat.com>
269
270 * dwarf2loc.c (extract_bits_primitive): New function.
271 (extract_bits): Likewise.
272 (insert_bits): Likewise.
273 (copy_bitwise): Likewise.
274 (read_pieced_value): Do all operations in bits.
275 (write_pieced_value): Likewise.
276 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
277 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
278 Always use xrealloc to resize piece array.
279 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
280 <DW_OP_piece>: Update.
281 <DW_OP_bit_piece>: New case.
282
283 2010-05-21 Tom Tromey <tromey@redhat.com>
284
285 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
286 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
287 * dwarf2expr.h (enum dwarf_value_location)
288 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
289 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
290 (add_piece): Handle empty piece.
291 (execute_stack_op) <DW_OP_piece>: Handle
292 DWARF_VALUE_OPTIMIZED_OUT.
293
294 2010-05-21 Tom Tromey <tromey@redhat.com>
295
296 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
297 evaluate_subexp, not evaluate_subexp_with_coercion.
298
299 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
300
301 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
302 attribute.
303
304 2010-05-21 Tom Tromey <tromey@redhat.com>
305
306 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
307 offset.
308 (write_pieced_value): Likewise.
309
310 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
311
312 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
313 and DW_TAG_volatile_type.
314 (new_symbol): Likewise.
315
316 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
317
318 * p-valprint.c (pascal_val_print): Call get_array_bounds
319 to obtain the number of elements in an array.
320
321 2010-05-19 Doug Evans <dje@google.com>
322
323 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
324
325 * python.c (source_python_script): Add comment.
326 (source_python_script_for_objfile): Remove unnecessary call to
327 gdbpy_print_stack.
328
329 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
330 Sergio Durigan Junior <sergiodj@redhat.com>
331
332 Code cleanup.
333 * parse.c (exp_iterate): Use operator_length wrapper function.
334
335 2010-05-18 Michael Snyder <msnyder@vmware.com>
336
337 * ada-lang.c: White space.
338 * ada-typeprint.c: White space.
339 * ada-valprint.c: White space.
340 * addrmap.c: White space.
341 * auxv.c: White space.
342 * ax-gdb.c: White space.
343
344 2010-05-18 Hui Zhu <teawater@gmail.com>
345
346 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
347 for oldfp.
348 (inferior_call_waitpid): Move make_cleanup out of check.
349 Check the return of waitpid.
350 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
351
352 2010-05-17 Michael Snyder <msnyder@vmware.com>
353
354 * tui/tui.c: White space.
355 * tui/tui-data.c: White space.
356 * tui/tui-disasm.c: White space.
357 * tui/tui-file.c: White space.
358 * tui/tui-interp.c: White space.
359 * tui/tui-main.c: White space.
360 * tui/tui-out.c: White space.
361 * tui/tui-regs.c: White space.
362 * tui/tui-source.c: White space.
363 * tui/tui-stack.c: White space.
364 * tui/tui-win.c: White space.
365 * tui/tui-winsource.c: White space.
366
367 * procfs.c: White space.
368
369 * python/py-auto-load.c: White space.
370 * python/py-block.c: White space.
371 * python/py-breakpoint.c: White space.
372 * python/py-cmd.c: White space.
373 * python/py-function.c: White space.
374 * python/py-lazy-string.c: White space.
375 * python/py-objfile.c: White space.
376 * python/py-param.c: White space.
377 * python/py-prettyprint.c: White space.
378 * python/py-progspace.c: White space.
379 * python/py-symtab.c: White space.
380 * python/python.c: White space.
381 * python/py-type.c: White space.
382 * python/py-utils.c: White space.
383 * python/py-value.c: White space.
384
385 * mi/mi-cmd-break.c: White space.
386 * mi/mi-cmd-env.c: White space.
387 * mi/mi-cmds.c: White space.
388 * mi/mi-cmd-stack.c: White space.
389 * mi/mi-cmd-var.c: White space.
390 * mi/mi-console.c: White space.
391 * mi/mi-getopt.c: White space.
392 * mi/mi-interp.c: White space.
393 * mi/mi-main.c: White space.
394 * mi/mi-out.c: White space.
395 * mi/mi-parse.c: White space.
396
397 * cli/cli-cmds.c: White space.
398 * cli/cli-decode.c: White space.
399 * cli/cli-dump.c: White space.
400 * cli/cli-interp.c: White space.
401 * cli/cli-logging.c: White space.
402 * cli/cli-script.c: White space.
403 * cli/cli-setshow.c: White space.
404
405 * valarith.c: White space.
406 * valops.c: White space.
407 * valprint.c: White space.
408 * value.c: White space.
409 * varobj.c: White space.
410 * xcoffread.c: White space.
411 * xml-support.c: White space.
412 * xml-tdesc.c: White space.
413
414 2010-05-17 Andreas Schwab <schwab@redhat.com>
415
416 PR gdb/11092
417 * c-lang.c (c_printstr): Compute real length of NUL terminated
418 string at first.
419
420 2010-05-17 Joel Brobecker <brobecker@adacore.com>
421
422 * parse.c (parse_exp_in_context): When block is not NULL, use
423 its associated language to parse the expression instead of
424 the current_language.
425
426 2010-05-17 Joel Brobecker <brobecker@adacore.com>
427
428 * jv-lang.c (java_lookup_class): Remove commented out code.
429 (type_from_class): Likewise.
430 (java_op_print_tab): Remove commented-out elements.
431
432 2010-05-17 Joel Brobecker <brobecker@adacore.com>
433
434 * ada-lang.c (to_fixed_range_type): The the raw index type as
435 argument instead of the raw type name. Remove orig_type parameter.
436 Update calls throughout.
437 (ada_fixup_array_indexes_type): New function.
438 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
439 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
440 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
441 Remove name parameter.
442 (print_array_type): Add call to ada_fixup_array_indexes_type.
443 Update calls to print_range_type.
444 (ada_print_type): Update calls to print_range_type.
445
446 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
447
448 * dwarf2read.c (read_set_type): Set type length if
449 DW_AT_byte_size attribute is present.
450
451 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
452
453 * p-valprint.c (pascal_val_print): Handle set type if range limits
454 are undefined but size is known.
455
456 2010-05-17 Pedro Alves <pedro@codesourcery.com>
457
458 * procfs.c: Reformat.
459
460 2010-05-16 Michael Snyder <msnyder@vmware.com>
461
462 * target.c: White space.
463 * target-descriptions.c: White space.
464 * target-memory.c: White space.
465 * thread.c: White space.
466 * top.c: White space.
467 * tracepoint.c: White space.
468 * trad-frame.c: White space.
469 * tramp-frame.c: White space.
470 * ui-file.c: White space.
471 * ui-out.c: White space.
472 * user-regs.c: White space.
473 * utils.c: White space.
474
475 * scm-exp.c: White space.
476 * scm-lang.c: White space.
477 * scm-valprint.c: White space.
478 * sentinel-frame.c: White space.
479 * ser-base.c: White space.
480 * ser-go32.c: White space.
481 * serial.c: White space.
482 * ser-mingw.c: White space.
483 * ser-pipe.c: White space.
484 * ser-tcp.c: White space.
485 * ser-unix.c: White space.
486 * solib.c: White space.
487 * solib-darwin.c: White space.
488 * solib-frv.c: White space.
489 * solib-irix.c: White space.
490 * solib-osf.c: White space.
491 * solib-pa64.c: White space.
492 * solib-som.c: White space.
493 * solib-spu.c: White space.
494 * solib-svr4.c: White space.
495 * solib-target.c: White space.
496 * source.c: White space.
497 * stabsread.c: White space.
498 * stack.c: White space.
499 * std-regs.c: White space.
500 * symfile.c: White space.
501 * symmisc.c: White space.
502 * symtab.c: White space.
503
504 2010-05-16 Michael Snyder <msnyder@vmware.com>
505
506 * source.c (_initialize_source): Add "rev" as an abbreviation
507 for the "reverse-search" command.
508
509 2010-05-16 Michael Snyder <msnyder@vmware.com>
510
511 * record.c: White space.
512 * regcache.c: White space.
513 * reggroups.c: White space.
514 * remote-fileio.c: White space.
515 * remote-m32r-sdi.c: White space.
516 * remote-mips.c: White space.
517 * remote-sim.c: White space.
518 * remote.c: White space.
519 (process_g_packet): Remove orphan braces.
520
521 2010-05-15 Michael Snyder <msnyder@vmware.com>
522
523 * parse.c: White space.
524 * p-lang.c: White space.
525 * posix-hdep.c: White space.
526 * printcmd.c: White space.
527 * progspace.c: White space.
528 * prologue-value.c: White space.
529 * psymtab.c: White space.
530 * p-typeprint.c: White space.
531 * p-valprint.c: White space.
532
533 * objc-lang.c: White space.
534 * objfiles.c: White space.
535 * observer.c: White space.
536 * osabi.c: White space.
537 * osdata.c: White space.
538
539 * m2-lang.c: White space.
540 * m2-valprint.c: White space.
541 * macrocmd.c: White space.
542 * macroexp.c: White space.
543 * macroscope.c: White space.
544 * macrotab.c: White space.
545 * main.c: White space.
546 * maint.c: White space.
547 * mdebugread.c: White space.
548 * memattr.c: White space.
549 * minsyms.c: White space.
550 * monitor.c: White space.
551
552 2010-05-14 Michael Snyder <msnyder@vmware.com>
553
554 * jv-lang.c: White space.
555 * jv-typeprint.c: White space.
556 * jv-valprint.c: White space.
557 * language.c: White space.
558 * libunwind-frame.c: White space.
559 * linespec.c: White space.
560 * linux-nat.c: White space.
561 * linux-record.c: White space.
562 * linux-thread-db.c: White space.
563
564 * infcall.c: White space.
565 * inf-child.c: White space.
566 * infcmd.c: White space.
567 * inferior.c: White space.
568 * inf-loop.c: White space.
569 * inflow.c: White space.
570 * inline-frame.c: White space.
571 * interps.c: White space.
572
573 * gcore.c: White space.
574 * gdb.c: White space.
575 * gdbtypes.c: White space.
576 * gnu-nat.c: White space.
577 * gnu-v2-abi.c: White space.
578 * gnu-v3-abi.c: White space.
579
580 * findcmd.c: White space.
581 * findvar.c: White space.
582 * fork-child.c: White space.
583 * frame-base.c: White space.
584 * frame.c: White space.
585 * frame-unwind.c: White space.
586 * f-valprint.c: White space.
587
588 * elfread.c: White space.
589 * environ.c: White space.
590 * eval.c: White space.
591 * event-loop.c: White space.
592 * event-top.c: White space.
593 * exceptions.c: White space.
594 * exec.c: White space.
595 * expprint.c: White space.
596
597 * dbxread.c: White space.
598 * dcache.c: White space.
599 * disasm.c: White space.
600 * doublest.c: White space.
601 * dsrec.c: White space.
602 * dummy-frame.c: White space.
603 * dwarf2expr.c: White space.
604 * dwarf2-frame.c: White space.
605 * dwarf2loc.c: White space.
606 * dwarf2read.c: White space.
607
608 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
609
610 PR python/11482
611
612 * python/py-value.c (valpy_hash): New function.
613 (value_object_type): Register valpy_hash.
614
615 2010-05-14 Hui Zhu <teawater@gmail.com>
616 Michael Snyder <msnyder@vmware.com>
617
618 * linux-fork.c (gdbthread.h): New include.
619 (fork_info): Add parent_ptid.
620 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
621 functions.
622 (delete_checkpoint_command): Call inferior_call_waitpid.
623 (checkpoint_command): Set parent_ptid.
624
625 2010-05-13 Michael Snyder <msnyder@vmware.com>
626
627 * dictionary.c: Re-indent to GNU coding standard.
628
629 * charset.c: White space.
630 * c-lang.c: White space.
631 * cli-out.c: White space.
632 * coffread.c: White space.
633 * complaints.c: White space.
634 * completer.c: White space.
635 * corefile.c: White space.
636 * corelow.c: White space.
637 * cp-abi.c: White space.
638 * cp-namespace.c: White space.
639 * cp-support.c: White space.
640 * cp-valprint.c: White space.
641 * c-typeprint.c: White space.
642 * c-valprint.c: White space.
643 * blockframe.c: White space.
644 * breakpoint.c: White space.
645 * buildsym.c: White space.
646 * blockframe.c: White space.
647 * bcache.c: White space.
648 * gdbarch.sh: White space, add blank lines.
649 * arch-utils.c: Ditto.
650 * gdbarch.c: Regenerate.
651 * frame.c: White space, add blank lines.
652 * stack.c: White space, add blank lines.
653 (initialize_stack): Remove long-dead code.
654
655 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
656
657 Code cleanup.
658 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
659 (locexpr_read_variable, loclist_read_variable): Update the callers.
660
661 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
662
663 Code cleanup.
664 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
665 Remove check of NULL returned by tag_type_to_type.
666 (die_containing_type): Remove variable type. Remove type_die variable
667 initialization. Remove check of NULL returned by tag_type_to_type.
668
669 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
670
671 PR exp/11530.
672 * gdbtypes.c (lookup_struct_elt_type): Also lookup
673 names of unnamed structures or unions.
674
675 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
676
677 * procfs.c (proc_watchpoint_address): New function.
678 (procfs_stopped_by_watchpoint): Remove useless check after
679 find_procinfo_or_die call.
680 (procfs_stopped_data_address): New function.
681 (procfs_use_watchpoints): Register new watchpoint related function.
682
683 2010-05-11 Tom Tromey <tromey@redhat.com>
684
685 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
686
687 2010-05-10 Michael Snyder <msnyder@vmware.com>
688
689 * utils.c: White space cleanup.
690
691 2010-05-10 Tom Tromey <tromey@redhat.com>
692
693 * eval.c (ptrmath_type_p): Add 'lang' argument.
694 (evaluate_subexp_standard): Update.
695 (evaluate_subexp_with_coercion): Update.
696 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
697
698 2010-05-10 Michael Snyder <msnyder@vmware.com>
699
700 * utils.c (do_fclose_cleanup) Restore local variable.
701
702 2010-05-09 Doug Evans <dje@google.com>
703
704 * record.c (init_record_core_ops): Rename record_core to record-core.
705
706 2010-05-08 Joel Brobecker <brobecker@adacore.com>
707
708 Implement task switching on pa-hpux.
709 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
710 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
711
712 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
713
714 * valops.c (find_overload_match): Add missing i18n markup.
715
716 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
717
718 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
719
720 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
721
722 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
723 list for the obconcat call.
724 * mdebugread.c (parse_symbol): Likewise.
725 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
726 Likewise.
727 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
728 New variable ap. Remove variables len and val.
729 * symfile.h (obconcat): Likewise for the prototype.
730
731 2010-05-07 Michael Snyder <msnyder@vmware.com>
732
733 * python/python.c (execute_gdb_command): Remove unused variables.
734 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
735 * python/py-breakpoint.c (gdbpy_breakpoint_created):
736 Remove unused variable.
737 * python/py-cmd.c (cmdpy_function): Remove unused variable.
738 (cmdpy_completer): Remove unused variable.
739 * python/py-frame.c (frapy_find_sal): Remove unused variable.
740 * python/py-function.c (fnpy_call): Remove unused variable.
741 * python/py-objfile.c (objfile_to_objfile_object):
742 Remove unused variable.
743 * python/py-param.c (parmpy_init): Remove unused variable.
744 * python/py-prettyprint.c (apply_varobj_pretty_printer):
745 Remove unused variable.
746 (gdbpy_default_visualizer): Remove unused variable.
747 * python/py-progspace.c (pspace_to_pspace_object):
748 Remove unused variable.
749 * python/py-symtab.c (symtab_and_line_to_sal_object):
750 Remove unused variable.
751 * python/py-type.c (typy_template_argument):
752 Remove unused variable.
753 * python/py-value.c (valpy_string): Remove unused variable.
754 (convert_value_from_python): Remove unused variables.
755
756 2010-05-07 Michael Snyder <msnyder@vmware.com>
757
758 * valops.c (value_cast_pointers): Restore unused variable 'type1',
759 and use it to compute variable 't1'.
760
761 2010-05-07 Joel Brobecker <brobecker@adacore.com>
762
763 * ada-lang.c (assign_aggregate): Remove unused variable.
764
765 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
766
767 PR C++/7943:
768 * valops.c (find_overload_match): Handle fsym == NULL case.
769 Add int no_adl argument.
770 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
771 when appropriate.
772 Add int no_adl argument.
773 (find_oload_champ_namespace): Add int no_adl argument.
774 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
775 expression.
776 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
777 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
778 Evaluate arguments and use them to perform ADL lookup.
779 Pass no_adl argument to find_overload_match.
780 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
781 * cp-support.h: Added prototype for
782 make_symbol_overload_list_namespace.
783 * cp-support.c (make_symbol_overload_list_namespace): New function.
784 (make_symbol_overload_list_adl_namespace): New function.
785 (make_symbol_overload_list_adl): New function.
786 (make_symbol_overload_list_using): Moved code to add function to
787 overload set to make_symbol_overload_list_namespace.
788 * c-exp.y: create UNKNOWN_CPP_NAME token.
789 Add parse rule for ADL functions.
790 (classify_name): Recognize an UNKNOWN_CPP_NAME.
791
792 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
793
794 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
795 sentinel.
796
797 2010-05-07 Joel Brobecker <brobecker@adacore.com>
798
799 Implement task switching on solaris targets.
800 * sol-thread.c (thread_db_find_thread_from_tid)
801 (sol_get_ada_task_ptid): New functions.
802 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
803
804 2010-05-07 Pedro Alves <pedro@codesourcery.com>
805
806 * remote.c (remote_query_supported_append): Use reconcat.
807 (remote_query_supported): Install a cleanup. Use reconcat.
808
809 2010-05-07 Pedro Alves <pedro@codesourcery.com>
810
811 * gdbarch.sh (qsupported): Delete.
812 * gdbarch.h, gdbarch.c: Regenerate.
813 * remote.c (remote_query_supported): Remove use of
814 gdbarch_qsupported.
815
816 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
817
818 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
819 function.
820
821 2010-05-06 Michael Snyder <msnyder@vmware.com>
822
823 * xml-support.c (xinclude_start_include): Delete unused variable.
824 (xml_process_xincludes): Delete unused variable.
825 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
826 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
827 (tdesc_find_arch_register): Delete unused variable.
828 (tdesc_use_registers): Delete unused variable.
829 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
830 * inferior.c (print_inferior): Delete unused variable.
831 * record.c (record_open_1): Delete unused variable.
832 (record_restore): Delete unused variable.
833 (cmd_record_save): Delete unused variable.
834 * gcore.c (derive_heap_segment): Delete unused variable.
835 (objfile_find_memory_regions): Use unused variable.
836 * jit.c (jit_inferior_init): Delete unused variable.
837 * progspace.c (clone_program_space): Delete unused variable.
838 (pspace_empty_p): Delete unused variable.
839
840 * frame-unwind.c (frame_unwind_find_by_frame):
841 Delete unused variable.
842 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
843 * cp-support.c (mangled_name_to_comp): Delete unused variable.
844 (method_name_from_physname): Delete unused variable.
845 (cp_func_name): Delete unused variable.
846 (cp_validate_operator): Delete unused variable.
847 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
848 Delete unused variable.
849 * trad-frame.c (trad_frame_get_prev_register):
850 Delete unused variable.
851 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
852
853 * serial.c (serial_for_fd): Delete unused variable.
854 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
855 * top.c (execute_command): Delete unused variable.
856 (init_main): Delete unused variable.
857 * utils.c (do_fclose_cleanup): Delete unused variable.
858 (do_all_inferior_continuations): Delete unused variable.
859 (initialize_utils): Delete unused variable.
860 (internal_problem_mode): Delete unused global.
861 * frame.c (get_prev_frame): Delete unused global.
862 (get_frame_locals_address): Delete unused global.
863 (get_frame_args_address): Delete unused global.
864
865 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
866 (pascal_type_print_varspec_prefix): Delete unused variable.
867 * f-typeprint.c (f_type_print_base): Delete unused variable.
868 (f_type_print_varspec_suffix): Delete unused variable.
869 * m2-typeprint.c (m2_print_type): Delete unused variable.
870 (m2_long_set): Delete unused variable.
871 * ada-valprint.c (ada_val_print_1): Delete unused variable.
872 * d-valprint.c (dynamic_array_type): Delete unused variable.
873 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
874 Delete unused variable.
875 (f77_create_arrayprint_offset_tbl): Delete unused variable.
876 * m2-valprint.c (m2_val_print): Delete unused variable.
877
878 * ui-out.c (ui_out_field_int): Delete unused variable.
879 (ui_out_field_fmt_int): Delete unused variable.
880 * varobj.c (varobj_list_children): Delete unused variable.
881 (varobj_set_value): Delete unused variable.
882 (install_new_value_visualizer): Delete unused variable.
883 (varobj_set_visualizer): Delete unused variable.
884 (varobj_update): Delete unused variable.
885 (varobj_editable_p): Delete unused variable.
886 (c_value_of_root): Delete unused variable.
887 (cplus_describe_child): Delete unused variable.
888
889 * ada-lang.c (add_defn_to_vec): Delete unused variable.
890 (decode_constrained_packed_array_type): Delete unused variable.
891 (add_defn_to_vec): Delete unused variable.
892 (symbol_completion_match): Delete unused variable.
893 (value_tag_from_contents_and_address): Delete unused variable.
894 (ada_evaluate_subexp): Delete unused variable.
895 * c-lang.c (classify_type): Delete unused variable.
896 * f-lang.c (f_printstr): Delete unused variable.
897 * objc-lang.c (objc_printstr): Delete unused variable.
898 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
899 * jv-lang.c (type_from_class): ifdef unused variable.
900 (java_class_name_from_physname): Delete unused variable.
901 * m2-lang.c (m2_printstr): Delete unused variable.
902
903 * objfiles.c (objfile_relocate): Delete unused variable.
904 * maint.c (_initialize_maint_cmds): Delete unused variable.
905 * demangle.c (_initialize_demangler): Delete unused variable.
906 * corefile.c (reopen_exec_file): Delete unused variable.
907 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
908 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
909
910 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
911 * memattr.c (mem_delete): Delete unused variable.
912 (invalidate_target_mem_regions): Delete unused variable.
913 * mem-break.c (default_memory_insert_breakpoint):
914 Delete unused variable.
915 * target.c (target_get_osdata): Delete unused variable.
916 * parse.c (length_of_subexp): Delete unused variable.
917 (prefixify_subexp): Delete unused variable.
918 (exp_iterate): Delete unused variable.
919 * reverse.c (delete_bookmark_command): Delete unused variable.
920
921 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
922 * macroexp.c (gather_arguments): Delete unused variable.
923 (substitute_args): Delete unused variable.
924 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
925 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
926 (_initialize_gdbarch): Delete unused variable.
927 * gdbarch.c, gdbarch.h: Regenerate.
928 * arch-utils.c (initialize_current_architecture):
929 Delete unused variable.
930 (_initialize_gdbarch_utils): Delete unused variable.
931 * gdbtypes.c (make_cv_type): Delete unused variable.
932 (make_type_with_address_space): Delete unused variable.
933
934 * linespec.c (decode_compound): Delete unused variable.
935 * dictionary.c (iterator_next_hashed): Delete unused variable.
936 * infcall.c (call_function_by_hand): Delete unused variable.
937 * infcmd.c (step_1): Delete unused variable.
938 (registers_info): Delete unused variable.
939 (attach_command): Delete unused variable.
940 * infrun.c (follow_exec): Delete unused variable.
941 (handle_step_into_function_backwards): Delete unused variable.
942 (_initialize_infrun): Delete unused variable.
943 * stack.c (parse_frame_specification_1): Delete unused variable.
944 (frame_info): Delete unused variable.
945 (backtrace_command_1): Delete unused variable.
946 (catch_info): Delete unused variable.
947
948 * eval.c (evaluate_subexp_standard): Delete unused variable.
949 * valops.c (value_cast_pointers): Delete unused variable.
950 (value_dynamic_cast): Delete unused variable.
951 (value_array): Delete unused variable.
952 (find_overload_match): Delete unused variable.
953 * valarith.c (value_subscript): Delete unused variable.
954 (value_binop): Delete unused variable.
955 * valprint.c (_initialize_valprint): Delete unused variable.
956 * printcmd.c (print_command_1): Delete unused variable.
957 (address_info): Delete unused variable.
958 (printf_command): Delete unused variable.
959
960 * auxv.c (target_auxv_search): Delete unused variable.
961 * blockframe.c (get_frame_block): Delete unused variable.
962 * regcache.c (regcache_cpy): Delete unused variable.
963 (regcache_cpy_no_passthrough): Delete unused variable.
964 * charset.c (wchar_iterate): Delete unused variable.
965 (find_charset_names): Delete unused variable.
966 (_initialize_charset): Delete unused variable.
967 * disasm.c (do_mixed_source_and_assembly):
968 Delete unused variable.
969 * source.c (set_default_source_symtab_and_line):
970 Delete unused variable.
971 (set_substitute_path_command): Delete unused variable.
972 * value.c (preserve_values): Delete unused variable.
973 (value_from_double): Delete unused variable.
974
975 2010-05-05 Michael Snyder <msnyder@vmware.com>
976
977 * psymtab.c (lookup_partial_symbol): Delete unused variable.
978 (find_last_source_symtab_from_partial): Delete unused variable.
979 * symfile.c (place_section): Delete unused variable.
980 (default_symfile_offsets): Delete unused variable.
981 (get_debug_link_info): Delete unused variable.
982 (find_separate_debug_file_by_debuglink): Delete unused variable.
983 (add_symbol_file_command): Delete unused variable.
984 (symfile_find_segment_sections): Delete unused variable.
985 * symmisc.c (free_symtab): Delete unused variable.
986 (dump_symtab_1): Delete unused variable.
987 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
988 (find_pc_sect_symtab): Delete unused variable.
989 (skip_prologue_using_lineinfo): Delete unused variable.
990 (sources_info): Delete unused variable.
991 (completion_list_add_name): Delete unused variable.
992 (expand_line_sal): Delete unused variable.
993
994 * breakpoint.c (validate_commands_for_breakpoint):
995 Delete unused variables.
996 (insert_catchpoint): Delete unused variable.
997 (update_watchpoint): Delete unused variable.
998 (insert_bp_location): Delete unused variable.
999 (insert_breakpoint_locations): Delete unused variable.
1000 (remove_breakpoint_1): Delete unused variable.
1001 (software_breakpoint_inserted_here_p): Delete unused variable.
1002 (watchpoints_triggered): Delete unused variable.
1003 (bpstat_check_watchpoint): Delete unused variable.
1004 (bpstat_stop_status): Delete unused variable.
1005 (print_one_breakpoint_location): Delete unused variable.
1006 (allocate_bp_location): Delete unused variable.
1007 (create_breakpoint): Delete unused variable.
1008 (watch_command_1): Delete unused variable.
1009 (catch_exception_command_1): Delete unused variable.
1010 (catch_ada_exception_command): Delete unused variable.
1011 (delete_breakpoint): Delete unused variable.
1012 (breakpoint_re_set_one): Delete unused variable.
1013 (do_enable_breakpoint): Delete unused variable.
1014
1015 2010-05-06 Pedro Alves <pedro@codesourcery.com>
1016
1017 * amd64-tdep.c: Include disasm.h.
1018 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
1019 (amd64_insn_length): Moved to disasm.c and renamed.
1020 (fixup_riprel): Adjust.
1021 * disasm.c (do_ui_file_delete): New.
1022 (gdb_insn_length): New.
1023 (gdb_buffered_insn_length_fprintf)
1024 (gdb_buffered_insn_length_init_dis)
1025 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
1026 renamed.
1027 * disasm.h (gdb_insn_length): Declare.
1028 (gdb_buffered_insn_length): Declare.
1029
1030 2010-05-06 Pedro Alves <pedro@codesourcery.com>
1031
1032 * remote.c (clear_threads_parsing_context): New.
1033 (remote_threads_info): Delete unused null_cleanup. Install a
1034 cleanup to clear the threads_parsing_context in case parsing
1035 throws.
1036
1037 2010-05-05 Michael Snyder <msnyder@vmware.com>
1038
1039 * c-exp.y (parse_string_or_char): Delete unused variable.
1040 (c_lex): Delete unused variable.
1041 * cp-name-parser.y (cpname_lex): Delete unused variable.
1042 * ada-exp.y (find_primitive_type): Delete unused variable.
1043 (write_var_or_type): Delete unused variable.
1044 * jv-exp.y (java_parse): Delete unused variable.
1045 (push_expression_name): Delete unused variable.
1046 * p-exp.y (pascal_lex): Delete unused variable.
1047
1048 2010-05-05 Pedro Alves <pedro@codesourcery.com>
1049
1050 * remote.c (remote_threads_info): Really revert previous previous
1051 change.
1052
1053 2010-05-05 Michael Snyder <msnyder@vmware.com>
1054
1055 * elfread.c (elf_symtab_read): Delete unused variable.
1056 (find_separate_debug_file_by_buildid): Delete unused variables.
1057 (elf_symfile_read): Delete unused variable.
1058
1059 * coffread.c (coff_symfile_read): Delete unused variables.
1060
1061 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
1062 (read_pe_exported_syms): Delete unused variable.
1063
1064 * stabsread.c (define_symbol): Delete unused variable.
1065
1066 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
1067 (process_psymtab_comp_unit): Delete unused variable.
1068 (dwarf2_build_psymtabs_hard): Delete unused variable.
1069 (load_partial_comp_unit): Delete unused variable.
1070 (create_all_comp_units): Delete unused variable.
1071 (scan_partial_symbols): Delete unused variable.
1072 (add_partial_symbol): Delete unused variable.
1073 (add_partial_namespace): Delete unused variable.
1074 (add_partial_enumeration): Delete unused variable.
1075 (load_full_comp_unit): Delete unused variable.
1076 (process_full_comp_unit): Delete unused variable.
1077 (read_file_scope): Delete unused variable.
1078 (read_type_unit_scope): Delete unused variable.
1079 (process_structure_scope): Delete unused variable.
1080 (process_enumeration_scope): Delete unused variable.
1081 (read_tag_ptr_to_member_type): Delete unused variable.
1082 (read_typedef): Delete unused variable.
1083 (read_partial_die): Delete unused variable.
1084 (decode_locdesc): Delete unused variable.
1085 (zeroed_partial_die): Delete unused global variable.
1086
1087 * tui/tui-interp.c (_initialize_tui_interp):
1088 Delete unused variable.
1089 * tui/tui-regs.c tui_display_registers_from):
1090 Delete unused variable.
1091 (tui_check_register_values): Delete unused variable.
1092 (tui_register_format): Delete unused variable.
1093 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
1094 * tui/tui-windata.c (tui_display_data_from_line):
1095 Delete unused variables.
1096 (tui_vertical_data_scroll): Delete unused variables.
1097
1098 2010-05-05 Michael Snyder <msnyder@vmware.com>
1099
1100 * remote.c (remote_threads_info): Revert questionable part of
1101 the previous change.
1102
1103 2010-05-05 Michael Snyder <msnyder@vmware.com>
1104
1105 * mi/mi-out.c (mi_table_begin): Delete unused variable.
1106 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
1107 (mi_cmd_var_list_children): Delete unused variable.
1108 (varobj_update_one): Delete unused variable.
1109 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
1110 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
1111 Delete unused variable.
1112 (mi_cmd_stack_list_variables): Delete unused variable.
1113 (list_args_or_locals): Delete unused variable.
1114 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
1115 Delete unused variables.
1116 (mi_cmd_file_list_exec_source_files): Delete unused variable.
1117 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
1118 Delete unused variable.
1119 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
1120 (mi_cmd_interpreter_exec): Delete unused variable.
1121 (mi_on_normal_stop): Delete unused variable.
1122 * mi/mi-main.c (run_one_inferior): Delete unused variable.
1123 (print_one_inferior): Delete unused variables.
1124 (mi_execute_command): Delete unused variable.
1125 (mi_cmd_execute): Delete unused variable.
1126 (timestamp): Delete unused variable.
1127
1128 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
1129 (restore_binary_file): Delete unused variable.
1130 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
1131 * cli/cli-script.c (define_command): Delete unused variables.
1132 (recurse_read_control_structure): Delete unused variable.
1133 (script_from_file): Delete unused variable.
1134 * cli/cli-cmds.c (complete_command): Delete unused variable.
1135 (disassemble_command): Delete unused variable.
1136
1137 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
1138 * tracepoint.c (delete_trace_variable_command):
1139 Delete unused variables.
1140 (encode_actions_1): Delete unused variables.
1141 (start_tracing): Delete unused variable.
1142 (trace_status_mi): Delete unused variable.
1143 (tfind_1): Delete unused variable.
1144 (trace_find_pc_command): Delete unused variable.
1145 (trace_find_line_command): Delete unused variables.
1146 (trace_find_range_command): Delete unused variables.
1147 (trace_find_outside_command): Delete unused variables.
1148 (parse_tracepoint_definition): Delete unused variables.
1149 (tfile_fetch_registers): Delete unused variable.
1150
1151 * dcache.c (dcache_init): Delete unused variable.
1152 (dcache_info): Delete unused variable.
1153
1154 * remote.c (remote_threads_info): Delete unused variable.
1155 (process_stop_reply) :Delete unused variable.
1156 (remote_get_trace_status): Delete unused variables.
1157
1158 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
1159 (thread_from_lwp): Delete unused variable.
1160 (enable_thread_event_reporting): Delete unused variable.
1161 (check_for_thread_db): Delete unused variables.
1162 (thread_db_find_new_threads_2): Delete unused variable.
1163
1164 * linux-fork.c (info_checkpoints_command): Delete unused variables.
1165 (checkpoint_command): Delete unused variable.
1166 (linux_fork_context): Delete unused variables.
1167
1168 * linux-nat.c (linux_parent_pid): Delete unused global variable.
1169 (linux_tracefork_child): Delete unused variable.
1170 (linux_child_follow_fork): Delete unused variable.
1171 (linux_nat_detach): Delete unused variable.
1172 (linux_handle_extended_wait): Delete unused variable.
1173 (linux_nat_has_pending_sigint): Delete unused variable.
1174 (linux_nat_find_memory_regions): Delete unused variable.
1175 (linux_nat_make_corefile_notes): Delete unused variables.
1176 (linux_nat_info_proc_cmd): Delete unused variable.
1177 (linux_proc_pending_signals): Delete unused variable.
1178 (linux_nat_stop_lwp): Delete unused variables.
1179 (_initialize_linux_nat): Delete unused variable.
1180
1181 * ser-pipe.c (pipe_ops): Delete unused global variable.
1182
1183 * linux-record.c (record_linux_system_call):
1184 Delete unused variables.
1185
1186 * corelow.c (core_xfer_partial): Delete unused variables.
1187
1188 * solib-svr4.c (find_program_interpreter): Delete unused variable.
1189 (svr4_solib_create_inferior_hook): Add ifdef around
1190 conditionally-used variable declarations.
1191
1192 * solib.c (solib_find): Delete unused variable.
1193 (free_so_symbols): Delete unused variable.
1194 (info_sharedlibrary_command): Delete unused variable.
1195 (reload_shared_libraries_1): Delete unused variable.
1196 (_initialize_solib): Delete unused variable.
1197
1198 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
1199 (i386_collect_xstateregset): Delete unused variable.
1200 * i387-tdep.c (i387_print_float_info): Delete unused variable.
1201
1202 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
1203 Delete unused variable 'type'.
1204
1205 2010-05-05 Joel Brobecker <brobecker@adacore.com>
1206
1207 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
1208 ada-lang.c: Remove comment mentioning these macros.
1209 * m2-exp.y: Delete commented out code.
1210
1211 2010-05-05 Joel Brobecker <brobecker@adacore.com>
1212
1213 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
1214 for array types.
1215 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
1216
1217 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
1218
1219 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
1220 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
1221 ATTRIBUTE_UNUSED.
1222 (cleanup_kernel_helper_return): Likewise.
1223 * arm-tdep.c (copy_unmodified): Likewise.
1224 (copy_preload): Likewise.
1225 (copy_copro_load_store): Likewise.
1226 (cleanup_branch): Likewise.
1227 (copy_b_bl_blx): Likewise.
1228 (copy_bx_blx_reg): Likewise.
1229 (copy_alu_imm): Likewise.
1230 (copy_alu_reg): Likewise.
1231 (copy_alu_shifted_reg): Likewise.
1232 (cleanup_load): Likewise.
1233 (cleanup_store): Likewise.
1234 (cleanup_block_load_pc): Likewise.
1235 (cleanup_svc): Likewise.
1236 (copy_undef): Likewise.
1237 (copy_unpred): Likewise.
1238 * remote.c (register_remote_support_xml): Likewise.
1239
1240 2010-05-05 Hui Zhu <teawater@gmail.com>
1241
1242 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
1243
1244 2010-05-04 Mark Kettenis <kettenis@gnu.org>
1245
1246 * remote.c (register_remote_support_xml)
1247 (remote_query_supported_append, remote_query_supported): Add cast
1248 to NULL used as sentinel.
1249 * tracepoint.c (tvariables_info_1): Likewise.
1250 * utils.c (add_internal_problem_command): Likewise.
1251
1252 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1253
1254 * dwarf2loc.c (read_pieced_value, write_pieced_value,
1255 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
1256 registers gracefully.
1257
1258 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1259
1260 * exec.c (print_section_info): Display entry point without arch
1261 specific parts.
1262
1263 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
1264
1265 PR exp/11349.
1266 * printcmd.c (x_command): Only dereference once implicitly for
1267 TYPE_CODE_REF.
1268
1269 2010-05-03 Doug Evans <dje@google.com>
1270
1271 * event-loop.c (gdb_timer): Delete unused global.
1272 (create_timer): Update.
1273
1274 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1275
1276 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
1277 CURRENT->DECLARATION case.
1278 * cp-support.h (struct using_direct): Provide extended comment.
1279
1280 2010-05-03 Mark Kettenis <kettenis@gnu.org>
1281
1282 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
1283 HPPABSD_SIZEOF_GREGS.
1284 (HPPAOBSD_SIZEOF_FPREGS): New define.
1285 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
1286 (hppaobsd_supply_fpregset): New function.
1287 (hppaobsd_gregset): Renamed from hppabsd_gregset.
1288 (hppaobsd_fpregset): New variable.
1289 (hppaobsd_regset_from_core_section): Handle floating-point registers.
1290 (_initialize_hppabsd_tdep): Remove spurious blank line.
1291
1292 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1293
1294 PR pascal/11349.
1295 * p-valprint.c (pascal_value_print): Always dereference a value with
1296 type code TYPE_CODE_REF.
1297
1298 2010-05-03 Pedro Alves <pedro@codesourcery.com>
1299
1300 * remote.c (remote_notice_signals): New.
1301 (remote_start_remote): In non-stop mode, update the remote end on
1302 which signals it can silently pass.
1303 (init_remote_ops): Install remote_notice_signals.
1304
1305 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1306
1307 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
1308 * command.h (error_no_arg): ... here. Remove NORETURN, change
1309 ATTR_NORETURN to ATTRIBUTE_NORETURN.
1310 * defs.h (NORETURN, ATTR_NORETURN): Remove.
1311 (perror_with_name, verror, error, error_stream, vfatal, fatal)
1312 (internal_verror, internal_error, nomem): Remove NORETURN, change
1313 ATTR_NORETURN to ATTRIBUTE_NORETURN.
1314 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
1315 (throw_vfatal, throw_error): Remove NORETURN.
1316 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
1317 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
1318 (throw_error, deprecated_throw_reason): Remove NORETURN, change
1319 ATTR_NORETURN to ATTRIBUTE_NORETURN.
1320 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
1321 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
1322 NORETURN.
1323 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
1324 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
1325 ATTRIBUTE_NORETURN.
1326 * target.c (tcomplain): Likewise.
1327 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
1328 ATTRIBUTE_NORETURN.
1329 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
1330 (internal_error, perror_with_name, nomem): Remove NORETURN.
1331 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
1332 ATTRIBUTE_NORETURN.
1333
1334 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1335
1336 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1337 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
1338 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
1339 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1340 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
1341 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1342 * complaints.h (complaint, internal_complaint): Likewise.
1343 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
1344 (ATTR_FORMAT): Remove.
1345 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
1346 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
1347 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
1348 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
1349 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
1350 (internal_error, internal_vwarning, internal_warning, warning)
1351 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1352 * disasm.c (fprintf_disasm): Likewise.
1353 * exceptions.c (throw_it): Likewise.
1354 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
1355 (throw_error): Likewise.
1356 * language.h (type_error, range_error): Likewise.
1357 * linespec.c (cplusplus_error): Likewise.
1358 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
1359 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
1360 * monitor.c (monitor_debug): Likewise.
1361 * parser-defs.h (parser_fprintf): Likewise.
1362 * serial.h (serial_printf): Likewise.
1363 * tui/tui-hooks.c (tui_query_hook): Likewise.
1364 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
1365 (uo_message): Likewise.
1366 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
1367 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
1368 Likewise.
1369 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
1370
1371 2010-05-02 Pedro Alves <pedro@codesourcery.com>
1372
1373 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
1374 (cli_table_header, cli_begin, cli_end, cli_field_int)
1375 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
1376 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
1377 Delete forward declarations.
1378 (cli_ui_out_impl): Move below the callbacks.
1379 (_initialize_cli_out): Delete.
1380
1381 2010-05-02 Pedro Alves <pedro@codesourcery.com>
1382
1383 * README: Use consistent `GDB' and `GDBserver' spellings.
1384
1385 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1386
1387 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
1388
1389 2010-05-01 Pedro Alves <pedro@codesourcery.com>
1390
1391 * infrun.c (prepare_for_detach): In non-stop, context switch to
1392 the thread that got the event before handling the event.
1393
1394 2010-04-30 Tom Tromey <tromey@redhat.com>
1395
1396 * symtab.c (symbol_set_names): Fix typo.
1397
1398 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
1399
1400 * python/py-param.c (parm_constants): Avoid ARI warning
1401 by adding ARI comment.
1402 (parmpy_init): Likewise.
1403
1404 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
1405
1406 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
1407 and created type for re-use.
1408
1409 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
1410
1411 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
1412
1413 2010-04-29 Doug Evans <dje@google.com>
1414
1415 * ser-base.h (reschedule): Delete prototype.
1416 * ser-base.c (reschedule): Make static.
1417
1418 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1419
1420 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
1421 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
1422 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
1423 EABI.
1424 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
1425 use.
1426
1427 2010-04-29 Pedro Alves <pedro@codesourcery.com>
1428
1429 PR gdb/11557
1430
1431 * regcache.c (registers_changed): Rename to ...
1432 (registers_changed_ptid): ... this, and only delete register cache
1433 entries matching the ptid filter argument.
1434 (registers_changed): Reimplement on top of registers_changed_ptid.
1435 * regcache.h (registers_changed_ptid): Declare.
1436 * target.c (target_resume): Flush register caches.
1437
1438 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
1439 Tom Tromey <tromey@redhat.com>
1440 Thiago Jung Bauermann <bauerman@br.ibm.com>
1441
1442 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
1443 (SUBDIR_PYTHON_SRCS): Likewise.
1444 (py-parameter.o): New rule.
1445 * python/py-parameter.c: New file.
1446 * python/python-internal.h (gdbpy_initialize_parameter)
1447 (gdbpy_parameter, gdbpy_parameter_value)
1448 (gdbpy_parse_command_name): Declare.
1449 * python/py-cmd.c (parse_command_name): Rename to
1450 gdbpy_parse_command_name.
1451 (gdbpy_parse_command_name): Accept a starting list parameter and
1452 use over cmdlist.
1453 (cmdpy_init): Use gdbpy_parse_command_name.
1454 * python/python.c (parameter_to_python): Rename to
1455 gdbpy_parameter_to_python. Accept enum var_types and value.
1456 (gdbpy_parameter): Use gdbpy_parameter_value.
1457 (_initialize_python): Call gdbpy_initialize_parameters.
1458
1459 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1460
1461 * MAINTAINERS: Add myself for write after approval privileges.
1462
1463 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
1464
1465 D language support.
1466 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
1467 (COMMON_OBS): Add d-lang.o d-valprint.o.
1468 (HFILES_NO_SRCDIR): Add d-lang.h.
1469 * NEWS: Mention D language support.
1470 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
1471 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
1472 * d-lang.c: New file.
1473 * d-lang.h: New file.
1474 * d-valprint.c: New file.
1475 * defs.h (enum language): Add language_d.
1476 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
1477 * language.c (binop_result_type, integral_type, character_type)
1478 (string_type, boolean_type, structured_type): Add language_d.
1479 * symfile.c (init_filename_language_table): Add language_d.
1480 * symtab.c: Include d-lang.h.
1481 (symbol_init_language_specific, symbol_find_demangled_name)
1482 (symbol_natural_name, lookup_symbol_in_language)
1483 (symbol_demangled_name, symbol_matches_domain): Add language_d.
1484
1485 2010-04-27 Joel Brobecker <brobecker@adacore.com>
1486
1487 * solib-svr4.c (solib_svr4_r_map): Expand function description.
1488
1489 2010-04-27 Joel Brobecker <brobecker@adacore.com>
1490
1491 * symfile.c (init_filename_language_table): Register .dg files
1492 with language_ada.
1493
1494 2010-04-27 Joel Brobecker <brobecker@adacore.com>
1495
1496 * gdbtypes.h (struct main_type): Expand comment about target_type
1497 field.
1498
1499 2010-04-27 Pedro Alves <pedro@codesourcery.com>
1500 Tristan Gingold <gingold@adacore.com>
1501
1502 * symfile.c (reread_symbols): Also search for file in libraries.
1503 Update comment.
1504
1505 2010-04-27 Joel Brobecker <brobecker@adacore.com>
1506
1507 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
1508 in terms of configuration.
1509
1510 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1511
1512 * objfiles.c: Include solist.h.
1513 (free_all_objfiles): New variable so. Check stale solist objfiles.
1514 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
1515 and no_shared_libraries.
1516
1517 2010-04-27 Joel Brobecker <brobecker@adacore.com>
1518
1519 ARI warning fix.
1520 * python/py-auto-load.c (source_section_scripts): Remove trailing
1521 new-line in i18n string.
1522
1523 2010-04-26 Doug Evans <dje@google.com>
1524
1525 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
1526
1527 2010-04-26 Tom Tromey <tromey@redhat.com>
1528
1529 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
1530 command list.
1531
1532 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
1533
1534 Removal of config/i386/nm-i386sol2.h native configuration file.
1535 * config/i386/nm-i386sol2.h: Remove file.
1536 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
1537 * config/i386/sol2-64.mh: Idem.
1538 * config/djgpp/fnchange.lst: Remove reference to that file.
1539 * Makefile.in (HFILES_NO_SRCDIR): Idem.
1540
1541 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
1542
1543 PR breakpoints/11531.
1544 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
1545 macro definition and related comment.
1546 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
1547 (resume): Remove code and comment related to this macro.
1548
1549 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1550
1551 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
1552 Fix whitespace.
1553
1554 2010-04-24 Pedro Alves <pedro@codesourcery.com>
1555
1556 * defs.h: Adjust comment.
1557 * filesystem.h, filesystem.c: New files.
1558 * Makefile.in (SFILES): Add filesystem.c.
1559 (COMMON_OBS): Add filesystem.o.
1560 * solib.c (solib_find): Handle DOS-based filesystems. Handle
1561 different target and host path flavours.
1562 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
1563 has_dos_based_file_system on the gdbarch.
1564 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
1565 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
1566 * i386-tdep.c (i386_go32_init_abi): Ditto.
1567 * gdbarch.sh (has_dos_based_file_system): New.
1568 * gdbarch.h, gdbarch.c: Regenerate.
1569 * NEWS: Mention improved support for remote targets with DOS-based
1570 filesystems. Mention new `set/show target-file-system-kind'
1571 commands.
1572
1573 2010-04-23 Stan Shebs <stan@codesourcery.com>
1574
1575 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
1576 comments.
1577 (struct agent_reqs): Remove.
1578 (ax_reg_mask): Declare.
1579 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
1580 (free_agent_expr): Free reg_mask.
1581 (ax_print): Add scope and register mask info.
1582 (ax_reqs): Remove agent_reqs argument, use agent expression
1583 fields, and move part of register mask computation to...
1584 (ax_reg_mask): New function.
1585 * ax-gdb.c (gen_trace_static_fields): Call it.
1586 (gen_traced_pop): Ditto.
1587 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
1588 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
1589 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
1590 (gen_eval_for_expr): Ditto, and require an rvalue.
1591 (agent_command): Call ax_reqs.
1592 (agent_eval_command): Ditto.
1593 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
1594 (validate_action_line): Ditto.
1595 (collect_symbol): Ditto.
1596 (encode_actions_1): Ditto.
1597
1598 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
1599 Paul Pluzhnikov <ppluzhnikov@google.com>
1600 Jan Kratochvil <jan.kratochvil@redhat.com>
1601
1602 Fix deadlock on looped list of loaded shared objects.
1603 * solib-svr4.c (LM_PREV): New function.
1604 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
1605 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
1606 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
1607 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
1608
1609 2010-04-23 Doug Evans <dje@google.com>
1610
1611 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
1612 python.
1613 * configure: Regenerate.
1614 * main.c: #include "python/python.h".
1615 (captured_main): Defer loading auto-loaded scripts until after
1616 local_gdbinit has been sourced.
1617 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
1618 (load_auto_scripts_for_objfile): New function.
1619 (auto_load_new_objfile): Call it.
1620 * python/python.h (gdbpy_global_auto_load): Declare.
1621 (load_auto_scripts_for_objfile): Declare.
1622
1623 Add support for auto-loading scripts from .debug_gdb_scripts section.
1624 * NEWS: Add entry for .debug_gdb_scripts.
1625 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
1626 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
1627 (py-auto-load.o): New rule.
1628 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
1629 * cli/cli-cmds.h (find_and_open_script): Update prototype.
1630 * python/py-auto-load.c: New file.
1631 * python/python-internal.h: #include <stdio.h>.
1632 (set_python_list, show_python_list): Declare.
1633 (gdbpy_initialize_auto_load): Declare.
1634 (source_python_script_for_objfile): Declare.
1635 * python/python.c: Remove #include of observer.h.
1636 (gdbpy_auto_load): Moved to py-auto-load.c.
1637 (GDBPY_AUTO_FILENAME): Ditto.
1638 (gdbpy_new_objfile): Delete.
1639 (source_python_script_for_objfile): New function.
1640 (set_python_list, show_python_list): Make externally visible.
1641 (_initialize_python): Move "auto-load" command to py-auto-load.c
1642 and observer_attach_new_objfile to py-auto-load.c.
1643
1644 2010-04-23 Jerome Guitton <guitton@adacore.com>
1645
1646 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
1647 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
1648 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
1649 New constants.
1650 (alpha_heuristic_analyze_probing_loop): New function.
1651 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
1652 and handle cases when a stack probe loop is generated.
1653 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
1654 (alpha_mdebug_max_frame_size_exceeded): New function.
1655 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
1656 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
1657 Return 0 when the maximum debuggable frame size has been exceeded.
1658
1659 2010-04-23 Joel Brobecker <brobecker@adacore.com>
1660
1661 Fix ARI warning.
1662 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
1663
1664 2010-04-20 Chris Moller <cmoller@redhat.com>
1665
1666 PR 10179
1667
1668 * symtab.c (rbreak_command): Added code to include a filename
1669 specification in the rbreak argument.
1670 * NEWS: Added a brief description of filename-qualified rbreak.
1671
1672 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1673
1674 Fix crashes on dangling display expressions.
1675 * ada-lang.c (ada_operator_check): New function.
1676 (ada_exp_descriptor): Fill-in the field operator_check.
1677 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
1678 * jv-lang.c (exp_descriptor_java): Likewise.
1679 * m2-lang.c (exp_descriptor_modula2): Likewise.
1680 * scm-lang.c (exp_descriptor_scm): Likewise.
1681 * parse.c (exp_descriptor_standard): Likewise.
1682 (operator_check_standard): New function.
1683 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
1684 * parser-defs.h (struct exp_descriptor): New field operator_check.
1685 (operator_check_standard, exp_uses_objfile): New declarations.
1686 * printcmd.c: Remove the inclusion of solib.h.
1687 (display_uses_solib_p): Remove the function.
1688 (clear_dangling_display_expressions): Call lookup_objfile_from_block
1689 and exp_uses_objfile instead of display_uses_solib_p.
1690 * solist.h (struct so_list) <objfile>: New comment.
1691 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
1692 * symtab.h (lookup_objfile_from_block): New declaration.
1693 (struct general_symbol_info) <obj_section>: Extend the comment.
1694
1695 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1696 Thiago Jung Bauermann <bauerman@br.ibm.com>
1697
1698 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
1699 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
1700 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
1701 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
1702 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
1703 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
1704 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
1705 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
1706 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
1707 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
1708 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
1709 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
1710 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
1711 Define, in case <ptrace.h> doesn't provide it.
1712 (booke_debug_info): New variable.
1713 (max_slots_number): Ditto.
1714 (hw_break_tuple): New struct.
1715 (thread_points): Ditto.
1716 (ppc_threads): New variable.
1717 (PPC_DEBUG_CURRENT_VERSION): New define.
1718 (have_ptrace_new_debug_booke): New function.
1719 (ppc_linux_check_watch_resources): Renamed to ...
1720 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
1721 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
1722 (booke_cmp_hw_point): New function.
1723 (booke_find_thread_points_by_tid): Ditto.
1724 (booke_insert_point): Ditto.
1725 (booke_remove_point): Ditto.
1726 (ppc_linux_insert_hw_breakpoint): Ditto.
1727 (ppc_linux_remove_hw_breakpoint): Ditto.
1728 (get_trigger_type): Ditto.
1729 (ppc_linux_insert_watchpoint): Handle BookE processors.
1730 (ppc_linux_remove_watchpoint): Ditto.
1731 (ppc_linux_new_thread): Ditto.
1732 (ppc_linux_thread_exit): New function..
1733 (ppc_linux_stopped_data_address): Handle BookE processors.
1734 (ppc_linux_watchpoint_addr_within_range): Ditto.
1735 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
1736 to_remove_hw_breakpoint fields of the target operations struct.
1737 Add observe for the thread_exit event.
1738
1739 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
1740
1741 * i386-linux-nat.c (regmap): Removed.
1742 (fetch_register): Replace regmap with
1743 i386_linux_gregset_reg_offset.
1744 (store_register): Likewise.
1745 (supply_gregset): Likewise.
1746 (fill_gregset): Likewise.
1747
1748 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
1749 global.
1750
1751 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
1752
1753 2010-04-22 Chris Moller <cmoller@redhat.com>
1754
1755 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
1756 method of popping recursion-detection stack with a method based on
1757 obstack_object_size(). (Similar to the PR9167 patch below, but for
1758 the static array obstack rather than the static member obstack.)
1759
1760 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
1761
1762 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
1763 (_initialize_amd64_linux_nat): Replace
1764 amd64_linux_gregset64_reg_offset with
1765 amd64_linux_gregset_reg_offset.
1766
1767 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
1768 global.
1769
1770 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
1771
1772 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
1773
1774 PR stabs/11479.
1775 * stabsread.c (set_length_in_type_chain): New function.
1776 (read_struct_type): Call set_length_in_type_chain function.
1777 (read_enum_type): Idem.
1778
1779 2010-04-21 Stan Shebs <stan@codesourcery.com>
1780 Nathan Sidwell <nathan@codesourcery.com>
1781
1782 * tracepoint.c (trace_save): Open in binary mode.
1783
1784 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
1785
1786 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
1787 fields.
1788 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
1789 builtin_char32 fields.
1790 * printcmd.c (decode_format): Set char size to '\0'
1791 for strings unless explicit size is given.
1792 (print_formatted): Correct calculation of NEXT_ADDRESS
1793 for 16 or 32 bit strings.
1794 (do_examine): Do not force byte size for strings.
1795 Use builtin_char16 and builtin_char32 types to display
1796 16 or 32 bit-wide strings.
1797 (x_command): Set LAST_SIZE to 'b' for string type.
1798
1799 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
1800
1801 PR corefiles/11523
1802 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1803 XCR0 first.
1804
1805 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
1806 there is no .reg-xstate section.
1807 (i386_linux_core_read_description): Check XCR0 first.
1808
1809 2010-04-21 Mike Frysinger <vapier@gentoo.org>
1810
1811 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
1812 for len <= 8.
1813
1814 2010-04-21 Chris Moller <cmoller@redhat.com>
1815
1816 PR 9167
1817 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
1818 method of popping recursion-detection stack with a method based on
1819 obstack_object_size().
1820
1821 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
1822
1823 PR pascal/11492.
1824 * p-valprint.c (pascal_val_print): Fix default printing of integer
1825 arrays.
1826
1827 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
1828
1829 Fix compilation warning on gcc-4.1.2.
1830 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
1831 local variable`pc' to zero.
1832
1833 2010-04-20 Joel Brobecker <brobecker@adacore.com>
1834
1835 Implement thread support with core files on alpha-tru64.
1836 * dec-thread.c (dec_thread_find_new_threads): New function,
1837 extracted from resync_thread_list.
1838 (resync_thread_list): Add OPS parameter. Replace extracted-out
1839 code by call to dec_thread_find_new_threads.
1840 (dec_thread_wait): Update call to resync_thread_list.
1841 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
1842
1843 2010-04-20 Joel Brobecker <brobecker@adacore.com>
1844
1845 * ada-lang.c (value_pointer): New function.
1846 (make_array_descriptor): Call value_pointer to convert addresses to
1847 pointers.
1848
1849 2010-04-20 Joel Brobecker <brobecker@adacore.com>
1850
1851 * rs6000-aix-tdep.c: #include exceptions.h.
1852 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
1853 while reading the memory at ADDR, then ADDR cannot be a function
1854 descriptor.
1855
1856 2010-04-20 Joel Brobecker <brobecker@adacore.com>
1857
1858 * ada-typeprint.c (ada_print_typedef): New function.
1859 * ada-lang.h (ada_print_typedef): Add declaration.
1860 * ada-lang.c (ada_language_defn): set la_print_typdef field
1861 to ada_print_typedef.
1862
1863 2010-04-20 Joel Brobecker <brobecker@adacore.com>
1864
1865 * procfs.c (procfs_address_to_host_pointer): Only define when used.
1866
1867 2010-04-20 Joel Brobecker <brobecker@adacore.com>
1868
1869 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
1870 (iterate_over_mappings): Adjust function profile. Add declaration.
1871 (insert_dbx_link_bpt_in_region, info_mappings_callback):
1872 Adjust accordingly.
1873
1874 2010-04-20 Joel Brobecker <brobecker@adacore.com>
1875
1876 * procfs.c (solib_mappings_callback): Move function up to avoid
1877 a compiler warning.
1878
1879 2010-04-20 Joel Brobecker <brobecker@adacore.com>
1880
1881 * procfs.c (find_signalled_thread, find_stop_signal): Move
1882 these functions down to define them only when used.
1883
1884 2010-04-20 Joel Brobecker <brobecker@adacore.com>
1885
1886 * valprint.c (common_val_print): Fix the value before extracting
1887 its contents.
1888 * ada-lang.c (ada_to_fixed_value): Make this function extern.
1889 * ada-lang.h (ada_to_fixed_value): New function declaration.
1890 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
1891 to avoid code duplication and fix a bug in the handling of
1892 fixed types contents.
1893
1894 2010-04-20 Tom Tromey <tromey@redhat.com>
1895
1896 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
1897 (read_partial_die): Likewise.
1898 (dwarf_attr_name): Likewise.
1899
1900 2010-04-20 Chris Moller <cmoller@redhat.com>
1901
1902 PR 10867
1903
1904 * cp-valprint.c (global): Adding new static array recursion
1905 detection obstack.
1906 (cp_print_value_fields, cp_print_static_field): Added new static
1907 array recursion detection code.
1908
1909 2010-04-20 Mark Kettenis <kettenis@gnu.org>
1910
1911 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
1912 general-purpose register set should be 68 instead of 144.
1913 (i386_linux_sse_regset_sections): Likewise.
1914 (i386_linux_avx_regset_sections): Likewise.
1915
1916 2010-04-20 Stan Shebs <stan@codesourcery.com>
1917 Nathan Sidwell <nathan@codesourcery.com>
1918
1919 * dwarf2loc.c (struct axs_var_loc): New struct.
1920 (dwarf2_tracepoint_var_loc): New function.
1921 (dwarf2_tracepoint_var_access): New function.
1922 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
1923 with DW_OP_piece.
1924 (locexpr_describe_location_piece): New function.
1925 (locexpr_describe_location_1): New function.
1926 (locexpr_describe_location): Call it, update signature.
1927 (loclist_describe_location): Rewrite to loop over locations,
1928 update signature.
1929 * symtab.h (struct symbol_computed_ops): Add address to
1930 describe_location arguments, return void.
1931 * printcmd.c (address_info): Get context PC, pass to computed
1932 location description.
1933 * tracepoint.c (scope_info): Ditto.
1934 * ax-gdb.c (trace_kludge): Export.
1935
1936 2010-04-20 Tom Tromey <tromey@redhat.com>
1937
1938 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
1939 (struct dwarf2_cie) <segment_size>: New field.
1940 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
1941 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
1942 DW_FORM_exprloc.
1943 (read_attribute_value): Handle DW_FORM_flag_present,
1944 DW_FORM_sec_offset, DW_FORM_exprloc.
1945 (dump_die_shallow): Likewise.
1946 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
1947 (dwarf2_const_value): Handle DW_FORM_exprloc.
1948 (attr_form_is_block): Likewise.
1949 (struct line_header) <maximum_ops_per_instruction>: New field.
1950 (dwarf_decode_line_header): Set new field.
1951 (dwarf_decode_lines): Handle new field.
1952
1953 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1954
1955 * f-exp.y: Add new production to recognize the `logical*8' type.
1956 (LOGICAL_S8_KEYWORD): New token.
1957 * f-lang.c (enum f_primitive_types)
1958 <f_primitive_type_logical_s8>: New field.
1959 (f_language_arch_info): Handling `logical*8' type.
1960 (build_fortran_types): Building `logical*8' type.
1961 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
1962
1963 2010-04-19 Doug Evans <dje@google.com>
1964
1965 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
1966 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
1967 (pipe_close): Ditto.
1968
1969 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1970
1971 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
1972
1973 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1974
1975 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
1976 type to void function.
1977
1978 2010-04-19 Stan Shebs <stan@codesourcery.com>
1979 Vladimir Prus <vladimir@codesourcery.com>
1980
1981 * tracepoint.c (tfind_1): Add missing newline, report exit from
1982 tfind mode as such.
1983 * target.c (update_current_target): Make default
1984 to_trace_find return -1.
1985
1986 2010-04-19 Mike Frysinger <vapier@gentoo.org>
1987
1988 * objc-lang.c (find_methods): Move symname check up.
1989
1990 2010-04-19 Pedro Alves <pedro@codesourcery.com>
1991
1992 * ada-lang.c (print_recreate_exception)
1993 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
1994 not "catch unhandled".
1995
1996 2010-04-19 Pedro Alves <pedro@codesourcery.com>
1997
1998 PR breakpoints/8554.
1999
2000 Implement `save-breakpoints'.
2001
2002 * breakpoint.c (save_cmdlist): New.
2003 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
2004 to save_cmdlist.
2005 (print_recreate_catch_fork): New.
2006 (catch_fork_breakpoint_ops): Install it.
2007 (print_recreate_catch_vfork): New.
2008 (catch_vfork_breakpoint_ops): Install it.
2009 (print_recreate_catch_syscall): New.
2010 (catch_syscall_breakpoint_ops): Install it.
2011 (print_recreate_catch_exec): New.
2012 (catch_exec_breakpoint_ops): Install it.
2013 (print_recreate_exception_catchpoint): New.
2014 (gnu_v3_exception_catchpoint_ops): Install it.
2015 (save_breakpoints): New, based on tracepoint_save_command, but
2016 handle all breakpoint types.
2017 (save_breakpoints_command): New.
2018 (tracepoint_save_command): Rename to...
2019 (save_tracepoints_command): ... this, and reimplement using
2020 save_breakpoints.
2021 (save_command): New.
2022 (_initialize_breakpoints): Install the "save" command prefix.
2023 Install the "save breakpoints" command. Make "save-tracepoints" a
2024 deprecated alias for "save tracepoints".
2025 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
2026 * ada-lang.c (print_recreate_exception): New.
2027 (print_recreate_catch_exception): New.
2028 (catch_exception_breakpoint_ops): Install it.
2029 (print_recreate_catch_exception_unhandled): New.
2030 (catch_exception_unhandled_breakpoint_ops): Install it.
2031 (print_recreate_catch_assert): New.
2032 (catch_assert_breakpoint_ops): Install it.
2033
2034 * NEWS: Mention the new `save breakpoints' command. Mention the
2035 new `save tracepoints' alias and that `save-tracepoints' is now
2036 deprecated.
2037
2038 2010-04-18 Pedro Alves <pedro@codesourcery.com>
2039
2040 PR tui/9217
2041
2042 * tui/tui-out.c: Include cli-out.h.
2043 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
2044 (tui_begin, tui_end, tui_field_int, tui_field_skip)
2045 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
2046 (tui_message, tui_wrap_hint, tui_flush): Delete forward
2047 declarations.
2048 (struct ui_out_data): Rename to...
2049 (struct tui_ui_out_data): ... this. Remove `stream' and
2050 `suppress_output' fields, and inherit cli_ui_out_data.
2051 (tui_out_data): New typedef.
2052 (tui_ui_out_impl): Don't initialize fields staticaly.
2053 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
2054 (tui_begin, tui_end): Delete.
2055 (tui_field_int): Adjust to delegate most work to the base type.
2056 (tui_field_skip): Delete.
2057 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
2058 delegate most work to the base type.
2059 (tui_spaces): Delete.
2060 (tui_text): Adjust to delegate most work to the base type.
2061 (tui_message): Delete.
2062 (tui_wrap_hint): Delete.
2063 (tui_flush): Delete.
2064 (out_field_fmt): Delete.
2065 (field_separator): Delete.
2066 (tui_out_new): Adjust to initialize the base type.
2067 (_initialize_tui_out): Initialize tui_ui_out_impl.
2068 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
2069 cli_ui_out_data.
2070 (cli_out_data): Adjust.
2071 (cli_ui_out_impl): Make extern.
2072 (cli_table_header, cli_field_int, cli_field_skip): Use
2073 uo_field_string instead of cli_field_string.
2074 (cli_redirect): Adjust to use cli_out_data.
2075 (cli_out_data_ctor): New.
2076 (cli_out_new): Use it.
2077 * cli-out.h (struct ui_file): Remove forward declaration.
2078 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
2079 (cli_ui_out_impl): Declare.
2080 (cli_out_data_ctor): Declare.
2081 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
2082 (uo_field_string): No longer static.
2083 (ui_out_data): Change return type to void pointer.
2084 (ui_out_new): Change `data' parameter type to void pointer.
2085 * ui-out.h (struct ui_out_data): Don't forward declare.
2086 (ui_out_data): Change return type to void pointer.
2087 (ui_out_new): Change `data' parameter type to void pointer.
2088 (uo_field_string): Declare.
2089
2090 2010-04-17 Pedro Alves <pedro@codesourcery.com>
2091
2092 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
2093 instead of always false.
2094
2095 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
2096
2097 PR corefiles/11511
2098 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
2099 orig_rax.
2100
2101 2010-04-17 Pedro Alves <pedro@codesourcery.com>
2102
2103 * breakpoint.c (watchpoints_triggered): Use
2104 is_hardware_watchpoint.
2105 (watchpoints_triggered): Ditto.
2106 (bpstat_check_location): Use is_watchpoint and
2107 is_hardware_watchpoint.
2108 (bpstat_check_watchpoint): Use is_watchpoint and
2109 is_hardware_watchpoint.
2110 (bpstat_stop_status): Fix comment.
2111 (user_settable_breakpoint): Use is_watchpoint.
2112 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
2113 (disable_watchpoints_before_interactive_call_start): Use
2114 is_watchpoint.
2115 (enable_watchpoints_after_interactive_call_stop): Use
2116 is_watchpoint.
2117 (clear_command): Use is_watchpoint.
2118 (do_enable_breakpoint): Use is_watchpoint.
2119
2120 2010-04-16 Mike Frysinger <vapier@gentoo.org>
2121
2122 * solib-frv.c (enable_break1_done): Delete.
2123 (enable_break2): Do not check enable_break1_done. Move the
2124 enable_break2_done setting and call to
2125 remove_solib_event_breakpoints() to the end. Return without
2126 warning when the contents of _dl_debug_addr are 0.
2127 (enable_break): Do not set enable_break1_done.
2128 (frv_clear_solib): Likewise.
2129
2130 2010-04-16 Kevin Buettner <kevinb@redhat.com>
2131
2132 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
2133 instead of an error if no PLT entry is found. Return a
2134 potentially useful result.
2135 (m32c_m16c_pointer_to_address): Add code to search for function
2136 address when no .plt entry is found.
2137
2138 2010-04-16 Stan Shebs <stan@codesourcery.com>
2139
2140 * tracepoint.c (trace_variable_command): Run a cleanup.
2141
2142 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
2143
2144 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
2145
2146 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
2147
2148 Support for Windows OS Thread Information Block.
2149 * NEWS: Document new feature.
2150 * remote.c (PACKET_qGetTIBAddr): New enum element.
2151 (remote_get_tib_address): New function.
2152 (init_remote_ops): Set to_get_tib_address field
2153 to remote_get_tib_address.
2154 (_initialize_remote): Add add_packet_config_cmd
2155 for PACKET_qGetTIBAddr.
2156 * target.c (update_current_target): Set default value for
2157 new to_get_tib_address field.
2158 * target.h (target_ops): New field to_get_tib_address.
2159 (target_get_tib_address): New macro.
2160 * windows-nat.c (thread_info): Add thread_local_base field.
2161 (windows_add_thread): Add tlb argument of type 'void *'.
2162 (fake_create_process): Adapt windows_add_thread call.
2163 (get_windows_debug_event): Idem.
2164 (windows_get_tib_address): New function.
2165 (init_windows_ops): Set to_get_tib_address field
2166 to remote_get_tib_address.
2167 (_initialize_windows_nat): Replace info_w32_cmdlist
2168 initialization by a call to init_w32_command_list.
2169 (info_w32_command, info_w32_cmdlist): Removed from here...
2170 to windows-tdep.c file.
2171 * windows-tdep.h (info_w32_cmdlist): Declare.
2172 (init_w32_command_list): New external function
2173 declaration.
2174 * windows-tdep.c: Add several headers.
2175 (info_w32_cmdlist): to here, made global.
2176 (thread_information_32): New struct.
2177 (thread_information_64): New struct.
2178 (TIB_NAME): New char array.
2179 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
2180 (maint_display_all_tib): New static variable.
2181 (windows_get_tlb_type): New function.
2182 (tlb_value_read, tlb_value_write): New functions.
2183 (tlb_value_funcs): New static struct.
2184 (tlb_make_value): New function.
2185 (display_one_tib): New function.
2186 (display_tib): New function.
2187 (show_maint_show_all_tib):New function.
2188 (info_w32_command): Moved from windows-nat.c.
2189 (init_w32_command_list): New function.
2190 (_initialize_windows_tdep): New function.
2191 New "maint set/show show-all-tib" command
2192 New "$_tlb" internal variable.
2193
2194 2010-04-16 Joel Brobecker <brobecker@adacore.com>
2195
2196 * tui/tui-regs.c (tui_display_register): Add comment about
2197 a couple of casts.
2198 * tui/tui-stack.c (tui_show_locator_content): Ditto.
2199
2200 2010-04-15 Stan Shebs <stan@codesourcery.com>
2201
2202 * frame.c: Include tracepoint.h.
2203 (get_current_frame): Allow a trace frame to be an alternate source
2204 of stack frame data.
2205 * tracepoint.c (tfind_1): Don't try to get current stack frame if
2206 it won't succeed.
2207
2208 2010-04-15 Pedro Alves <pedro@codesourcery.com>
2209
2210 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
2211 flags.
2212 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
2213
2214 2010-04-15 Doug Evans <dje@google.com>
2215
2216 * NEWS: Add entry for python program space support.
2217 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
2218 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
2219 (py-progspace.o): New rule.
2220 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
2221 function.
2222 (find_pretty_printer_from_progspace): New function.
2223 (find_pretty_printer_from_gdb): New function.
2224 (find_pretty_printer): Rewrite.
2225 * python/py-progspace.c: New file.
2226 * python/python-internal.h (program_space): Add forward decl.
2227 (pspace_to_pspace_object, pspy_get_printers): Declare.
2228 (gdbpy_initialize_pspace): Declare.
2229 * python/python.c: #include "progspace.h".
2230 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
2231 (_initialize_python): Call gdbpy_initialize_pspace.
2232 (GdbMethods): Add current_progspace, progspaces.
2233
2234 Add -s option to source command.
2235 * NEWS: Document new option.
2236 * cli/cli-cmds.c (find_and_open_script): Add function comment.
2237 Delete from_tty and cleanupp args. Split filep arg into file and
2238 full_pathp. New arg search_path.
2239 (source_script_from_stream): New function.
2240 (source_script_with_search): New function.
2241 (source_script): Rewrite.
2242 (source_command): Parse "-s" option.
2243 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
2244 * python/python.c (source_python_script): Make file arg a const char *.
2245 Don't call fclose, leave for caller.
2246 * python/python.h (source_python_script): Update.
2247
2248 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
2249 Pedro Alves <pedro@codesourcery.com>
2250
2251 Avoid rereading shared libraries that haven't changed.
2252
2253 * solib.c (free_so_symbols): New function, from ...
2254 (free_so): ... here. Call it.
2255 (solib_read_symbols): Don't warn here if symbols have already been
2256 loaded.
2257 (solib_add): Warn here instead, if a pattern was specified.
2258 (reload_shared_libraries_1): New.
2259 (reload_shared_libraries): Rewrite to not fetch the library list.
2260
2261 2010-04-14 Doug Evans <dje@google.com>
2262
2263 * source.c (openp): Strip DOS drive letter if present before
2264 concatenating string to search path.
2265
2266 2010-04-14 Pedro Alves <pedro@codesourcery.com>
2267
2268 * objfiles.h (gdb_bfd_close_or_warn): Declare.
2269 * objfiles.c (gdb_bfd_close_or_warn): New.
2270 * corelow.c: Include objfiles.h
2271 (core_close): Use gdb_bfd_close_or_warn.
2272 * elfread.c (build_id_verify): Ditto.
2273 * exec.c (exec_close, exec_close_1): Ditto.
2274
2275 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
2276 Pedro Alves <pedro@codesourcery.com>
2277
2278 Group errors for many missing shared libraries.
2279
2280 * solist.h (struct so_list): Remove from_tty.
2281 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
2282 (solib_map_sections): Take so_list argument. Return 0 if we
2283 failed to open a BFD. Add target sections here.
2284 (symbol_add_stub): Delete.
2285 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
2286 not from_tty copied from the so_list. Don't warn a second time
2287 for a missing library.
2288 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
2289 add to the section table here. Print out a single warning for all
2290 missing libraries.
2291 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
2292 flags.
2293
2294 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
2295
2296 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
2297 error/warning messages. Capitalize and use complete sentences.
2298 (blpy_block_syms_iternext): Likewise.
2299 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
2300 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
2301 (frame_info_to_frame_object, frapy_read_var)
2302 (gdbpy_frame_stop_reason_string): Likewise.
2303 * python/py-lazy-string.c (stpy_convert_to_value)
2304 (gdbpy_create_lazy_string_object): Likewise.
2305 * python/py-objfile.c (objfpy_set_printers): Likewise.
2306 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
2307 * python/python.c (parameter_to_python): Likewise.
2308 * python/py-type.c (typy_range, typy_target): Likewise.
2309 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
2310 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
2311
2312
2313 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
2314
2315 PR python/11381
2316
2317 * python/py-prettyprint.c (pretty_print_one_value): Test for
2318 Py_None.
2319 (print_string_repr): Test for Py_None. Set flags accordingly.
2320 Return value depending on return type.
2321 (print_children): Take a value indicating whether data was printed
2322 before this function was called. Alter output accordingly.
2323 (apply_val_pretty_printer): Capture return value from
2324 print_string_repr and pass to print_children.
2325
2326 2010-04-13 Mark Kettenis <kettenis@gnu.org>
2327
2328 PR corefiles/11481
2329 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
2330 register note sections.
2331 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2332 New variables.
2333 (i386_linux_init_abi): Install list of supported register note
2334 sections that matches the target description.
2335
2336 2010-04-13 Pedro Alves <pedro@codesourcery.com>
2337
2338 * remote.c (remote_get_noisy_reply): Don't error out on empty
2339 replies.
2340 (remote_start_remote): Update and merge tracepoints and trace
2341 state variables as long as the target supports tracepoints.
2342 (remote_trace_init): Fix prototype.
2343 (remote_download_trace_state_variable): Validate reply.
2344 (remote_trace_set_readonly_regions): Fix prototype.
2345 (remote_trace_start): Fix prototype. Check for empty reply.
2346 (remote_get_trace_status): Small cleanup.
2347 (remote_trace_stop): Fix prototype. Check for empty reply.
2348 (remote_trace_find): Check for empty reply.
2349 (remote_save_trace_data): Validate reply.
2350 (remote_set_disconnected_tracing): Check for empty reply, and
2351 validate reply.
2352 (remote_set_circular_trace_buffer): Ditto.
2353
2354 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
2355
2356 Suppress unused value warning during compilation.
2357 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
2358 calls to void.
2359 * tui/tui-stack.c (tui_show_locator_content): Likewise.
2360
2361 2010-04-12 Stan Shebs <stan@codesourcery.com>
2362
2363 * tracepoint.c (tfile_xfer_partial): Check read result.
2364
2365 2010-04-12 Mike Frysinger <vapier@gentoo.org>
2366
2367 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
2368 * remote-sim.c (gdbsim_files_info): Likewise.
2369
2370 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2371
2372 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
2373 * arm-linux-nat.c (arm_linux_vfp_register_count): New
2374 variable.
2375 (fetch_vfp_registers): New function to fetch VFP registers.
2376 (store_vfp_registers): New function to store VFP registers.
2377 (arm_linux_fetch_inferior_registers): Add support for VFP
2378 registers.
2379 (arm_linux_store_inferior_registers): Likewise.
2380 (arm_linux_read_description): Likewise.
2381 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
2382 until we need it.
2383
2384 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
2385
2386 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
2387 tdep.
2388 (amd64_collect_xstateregset): Likewise.
2389
2390 2010-04-09 Stan Shebs <stan@codesourcery.com>
2391
2392 * tracepoint.c (trace_status_mi): Report frames created.
2393
2394 * tracepoint.c (trace_dump_command): Include default-collect
2395 expressions.
2396
2397 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
2398
2399 * symtab.c (find_function_start_sal): Never return SAL pointing
2400 before function start address, even if line info is missing.
2401
2402 2010-04-09 Pedro Alves <pedro@codesourcery.com>
2403
2404 * NEWS: Mention tracepoints support.
2405
2406 2010-04-09 Pedro Alves <pedro@codesourcery.com>
2407
2408 * tracepoint.c (trace_status_mi): Report disconnected tracing and
2409 circular trace buffer statuses.
2410
2411 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2412
2413 * config/djgpp/fnchange.lst: Fix typo in translations for
2414 symbol-without-target_section.exp and symbol-without-target_section.c.
2415
2416 2010-04-09 Pedro Alves <pedro@codesourcery.com>
2417
2418 * breakpoint.c (condition_command): Pass condition expression to
2419 set_breakpoint_condition stripped from breakpoint number.
2420
2421 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
2422 Thiago Jung Bauermann <bauerman@br.ibm.com>
2423 Tom Tromey <tromey@redhat.com>
2424
2425 * breakpoint.c (condition_command): Simplify. Move condition
2426 setting code to ...
2427 (set_breakpoint_condition): ... here. New function.
2428 * breakpoint.h (set_breakpoint_condition): Declare.
2429 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
2430 (SUBDIR_PYTHON_SRCS): Likewise.
2431 (py-breakpoint.o): New rule.
2432 * python/py-breakpoint.c: New file.
2433 * python/python-internal.h (gdbpy_breakpoints)
2434 (gdbpy_initialize_breakpoints): Declare.
2435 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
2436
2437 2010-04-09 Pedro Alves <pedro@codesourcery.com>
2438
2439 * regformats/regdat.sh: Include server.h. Don't include
2440 regcache.h.
2441
2442 2010-04-08 Stan Shebs <stan@codesourcery.com>
2443 Pedro Alves <pedro@codesourcery.com>
2444
2445 * tracepoint.h (struct trace_status): New fields disconnected_tracing
2446 and circular_buffer.
2447 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
2448 * tracepoint.c (trace_status_command): Display target's status for
2449 disconnected tracing and circular buffer.
2450 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
2451 query for non-disconnected-tracing case, remove the stop_tracing
2452 call.
2453 (tfile_open): Clear disconnected and circular buffer status.
2454 (trace_save): Save disconnected and circular buffer status.
2455 (parse_trace_status): Parse disconnected and circular buffer status,
2456 also recognize disconnected as a stop reason.
2457 * remote.c (remote_set_disconnected_tracing): Only set
2458 QTDisconnected if the remote end supports disconnected tracing.
2459 Warn otherwise, if trying to enable disconnected tracing.
2460 * infcmd.c (detach_command): Update disconnect_tracing call.
2461 * cli/cli-cmds.c (quit_command): Ditto.
2462
2463 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
2464
2465 * i387-tdep.c (i387_collect_xsave): Replace abort with
2466 internal_error.
2467
2468 2010-04-08 Stan Shebs <stan@codesourcery.com>
2469
2470 * breakpoint.c (default_collect_info): New function.
2471 (breakpoints_info): Call it.
2472 (maintenance_info_breakpoints): Ditto.
2473 (tracepoints_info): Ditto.
2474
2475 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
2476
2477 * i387-tdep.c (i387_collect_xsave): Re-indent.
2478
2479 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
2480
2481 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
2482 if HAVE_PTRACE_GETFPXREGS is defined.
2483 (i386_linux_read_description): Set have_ptrace_getfpxregs and
2484 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
2485
2486 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
2487 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
2488 if .reg-xfp section doesn't exist.
2489 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
2490
2491 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
2492
2493 * i386-tdep.c: Include "features/i386/i386-mmx.c".
2494 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
2495 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
2496 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
2497 (i386_gdbarch_init): Update comments.
2498 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
2499
2500 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
2501
2502 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
2503
2504 * features/Makefile (i386/i386-mmx-expedite): New.
2505 (i386/i386-mmx-linux-expedite): Likewise.
2506 ($(outdir)/i386/i386-mmx.dat): Likewise.
2507 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
2508
2509 * features/i386/i386-mmx-linux.c: New.
2510 * features/i386/i386-mmx-linux.xml: Likewise.
2511 * features/i386/i386-mmx.c: Likewise.
2512 * features/i386/i386-mmx.xml: Likewise.
2513 * regformats/i386/i386-mmx-linux.dat: Likewise.
2514 * regformats/i386/i386-mmx.dat: Likewise.
2515
2516 * features/Makefile (WHICH): Add i386/i386-mmx and
2517 i386/i386-mmx-linux.
2518
2519 2010-04-08 Doug Evans <dje@google.com>
2520
2521 * source.c (openp): Skip $cdir in PATH.
2522
2523 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
2524
2525 PR python/11417
2526 * python/py-lazy-string.c (stpy_convert_to_value): Check for
2527 a NULL address.
2528 (gdbpy_create_lazy_string_object): Allow strings with a NULL
2529 address and a zero length.
2530
2531 2010-04-08 Hui Zhu <teawater@gmail.com>
2532
2533 * i386-tdep.c (i386_process_record): Add support for insn
2534 rdtsc.
2535
2536 2010-04-07 Doug Evans <dje@google.com>
2537
2538 * python/python.c (source_python_script): Use ensure_python_env
2539 to prepare environment for script.
2540
2541 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
2542
2543 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
2544 <sys/uio.h> and "i386-xstate.h".
2545 (PTRACE_GETREGSET): New.
2546 (PTRACE_SETREGSET): Likewise.
2547 (have_ptrace_getregset): Likewise.
2548 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
2549 registers.
2550 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
2551 registers.
2552 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
2553 (amd64_linux_store_inferior_registers): Likewise.
2554 (amd64_linux_read_description): Check and enable AVX target
2555 descriptions.
2556
2557 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
2558 and "features/i386/amd64-avx-linux.c".
2559 (amd64_linux_regset_sections): New.
2560 (amd64_linux_core_read_description): Check and enable AVX
2561 target description.
2562 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
2563 set_gdbarch_core_regset_sections.
2564 (_initialize_amd64_linux_tdep): Call
2565 initialize_tdesc_amd64_avx_linux.
2566
2567 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
2568 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
2569 (tdesc_amd64_avx_linux): New.
2570 (amd64_linux_update_xstateregset): Likewise.
2571
2572 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
2573 (amd64_ymm_names): New.
2574 (amd64_ymmh_names): Likewise.
2575 (amd64_register_name): Likewise.
2576 (amd64_supply_xstateregset): Likewise.
2577 (amd64_collect_xstateregset): Likewise.
2578 (amd64_supply_xsave): Likewise.
2579 (amd64_collect_xsave): Likewise.
2580 (AMD64_NUM_REGS): Removed.
2581 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
2582 %xmmN if AVX is available.
2583 (amd64_pseudo_register_name): Support pseudo YMM registers.
2584 (amd64_regset_from_core_section): Support .reg-xstate section.
2585 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
2586 and ymm0h_regnum. Call set_gdbarch_register_name.
2587 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
2588
2589 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
2590 AMD64_YMM15H_REGNUM.
2591 (AMD64_NUM_REGS): New.
2592 (amd64_supply_xsave): Likewise.
2593 (amd64_collect_xsave): Likewise.
2594 (amd64_register_name): Removed.
2595 (amd64_register_type): Likewise.
2596
2597 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
2598
2599 * i387-tdep.c: Include "i386-xstate.h".
2600 (XSAVE_XSTATE_BV_ADDR): New.
2601 (xsave_avxh_offset): Likewise.
2602 (XSAVE_AVXH_ADDR): Likewise.
2603 (i387_supply_xsave): Likewise.
2604 (i387_collect_xsave): Likewise.
2605
2606 * i387-tdep.h (I387_NUM_YMM_REGS): New.
2607 (I387_YMM0H_REGNUM): Likewise.
2608 (I387_YMMENDH_REGNUM): Likewise.
2609 (i387_supply_xsave): Likewise.
2610 (i387_collect_xsave): Likewise.
2611
2612 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
2613
2614 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
2615 <sys/uio.h> and "i386-xstate.h".
2616 (PTRACE_GETREGSET): New.
2617 (PTRACE_SETREGSET): Likewise.
2618 (fetch_xstateregs): Likewise.
2619 (store_xstateregs): Likewise.
2620 (GETXSTATEREGS_SUPPLIES): Likewise.
2621 (regmap): Include 8 upper YMM registers.
2622 (i386_linux_fetch_inferior_registers): Support XSAVE extended
2623 state.
2624 (i386_linux_store_inferior_registers): Likewise.
2625 (i386_linux_read_description): Check and enable AVX target
2626 descriptions.
2627
2628 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
2629 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
2630 (i386_linux_regset_sections): Add ".reg-xstate".
2631 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
2632 (i386_linux_core_read_xcr0): New.
2633 (i386_linux_core_read_description): Check and enable AVX target
2634 description.
2635 (i386_linux_init_abi): Set xsave_xcr0_offset.
2636 (_initialize_i386_linux_tdep): Call
2637 initialize_tdesc_i386_avx_linux.
2638
2639 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
2640 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
2641 (i386_linux_core_read_xcr0): New.
2642 (tdesc_i386_avx_linux): Likewise.
2643 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
2644
2645 * i386-tdep.c: Include "i386-xstate.h" and
2646 "features/i386/i386-avx.c".
2647 (i386_ymm_names): New.
2648 (i386_ymmh_names): Likewise.
2649 (i386_ymmh_regnum_p): Likewise.
2650 (i386_ymm_regnum_p): Likewise.
2651 (i386_xmm_regnum_p): Likewise.
2652 (i386_register_name): Likewise.
2653 (i386_ymm_type): Likewise.
2654 (i386_supply_xstateregset): Likewise.
2655 (i386_collect_xstateregset): Likewise.
2656 (i386_sse_regnum_p): Removed.
2657 (i386_pseudo_register_name): Support pseudo YMM registers.
2658 (i386_pseudo_register_type): Likewise.
2659 (i386_pseudo_register_read): Likewise.
2660 (i386_pseudo_register_write): Likewise.
2661 (i386_dbx_reg_to_regnum): Return %ymmN register number for
2662 %xmmN if AVX is available.
2663 (i386_regset_from_core_section): Support .reg-xstate section.
2664 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
2665 (i386_process_record): Replace i386_sse_regnum_p with
2666 i386_xmm_regnum_p.
2667 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
2668 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
2669 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
2670 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
2671 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
2672 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
2673 Set ymm0_regnum.
2674 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
2675
2676 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
2677 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
2678 i386_ymm_type.
2679 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
2680 (I386_AVX_NUM_REGS): New.
2681 (i386_xmm_regnum_p): Likewise.
2682 (i386_ymm_regnum_p): Likewise.
2683 (i386_ymmh_regnum_p): Likewise.
2684
2685 * common/i386-xstate.h: New.
2686
2687 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
2688
2689 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
2690
2691 * features/Makefile (WHICH): Add i386/i386-avx,
2692 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
2693 (i386/i386-avx-expedite): New.
2694 (i386/i386-avx-linux-expedite): Likewise.
2695 (i386/x86-64-avx-expedite):Likewise.
2696 (i386/x86-64-avx-linux-expedite): Likewise.
2697 ($(outdir)/i386/i386-avx.dat): New dependency.
2698 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
2699 ($(outdir)/i386/x86-avx-64.dat): Likewise.
2700 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
2701
2702 * features/i386/32bit-avx.xml: New.
2703 * features/i386/64bit-avx.xml: Likewise.
2704 * features/i386/i386-avx-linux.c: Likewise.
2705 * features/i386/i386-avx-linux.xml: Likewise.
2706 * features/i386/i386-avx.c: Likewise.
2707 * features/i386/i386-avx.xml: Likewise.
2708 * features/i386/x86-64-avx-linux.c: Likewise.
2709 * features/i386/x86-64-avx-linux.xml: Likewise.
2710 * features/i386/x86-64-avx.c: Likewise.
2711 * features/i386/x86-64-avx.xml: Likewise.
2712 * regformats/i386/i386-avx-linux.dat: Likewise.
2713 * regformats/i386/i386-avx.dat: Likewise.
2714 * regformats/i386/x86-64-avx-linux.dat: Likewise.
2715 * regformats/i386/x86-64-avx.dat: Likewise.
2716
2717 2010-04-07 Doug Evans <dje@google.com>
2718
2719 * top.c (source_file_name): Make const char *.
2720 * top.h (source_file_name): Update.
2721 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
2722 const char *.
2723 (script_from_file): Change `file' arg to const char *.
2724 * cli/cli-script.h (script_from_file): Update.
2725
2726 2010-04-06 Doug Evans <dje@google.com>
2727
2728 * cli/cli-cmds.c (source_command): Run cleanups.
2729
2730 2010-04-06 Stan Shebs <stan@codesourcery.com>
2731
2732 * defs.h (char_ptr): Move typedef here from...
2733 * ada-lang.c (char_ptr): Remove.
2734 * charset.c (char_ptr): Remove.
2735 * tracepoint.h (struct uploaded_string): Remove.
2736 (struct uploaded_tp): Use vectors for string arrays.
2737 * tracepoint.c (trace_save): Use vectors of actions.
2738 (parse_tracepoint_definition): Ditto.
2739 (get_uploaded_tp): Clear vectors.
2740 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
2741 (next_cmd): Change to an int.
2742 (read_next_cmd): Use vector of command strings.
2743
2744 2010-04-06 Doug Evans <dje@google.com>
2745
2746 * top.h (source_script, cd_command): Delete.
2747 * main.c: #include "cli/cli-cmds.h"
2748
2749 2010-04-06 Kevin Buettner <kevinb@redhat.com>
2750
2751 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
2752 type in bytes, not bits.
2753
2754 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
2755
2756 * stabsread.c (define_symbol): Add support for char
2757 and string constants.
2758
2759 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
2760
2761 Remove remaining "%ll" uses.
2762 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
2763 hex_string call.
2764 * rs6000-nat.c (rs6000_ptrace64): Idem.
2765 * solib-pa64.c (pa64_current_sos): Idem.
2766 * solib-spu.c (spu_current_sos): Idem.
2767 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
2768 plongest call.
2769 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
2770 phex (VAR, 8) call.
2771 * sh64-tdep.c (sh64_show_media_regs): Idem.
2772
2773 2010-04-05 Stan Shebs <stan@codesourcery.com>
2774
2775 * tracepoint.c: Include gdbcore.h.
2776 (tfile_xfer_partial): Return partial results, also try reading
2777 from executable.
2778 (tfile_has_all_memory): New function.
2779 (init_tfile_ops): Use it.
2780
2781 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
2782
2783 PR gdb/10736:
2784 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
2785 the changes in data-directory.
2786 (init_sysinfo): Reload the syscall XML file if the data-directory
2787 has changed.
2788
2789 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2790
2791 Code cleanup.
2792 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
2793
2794 2010-04-04 Stan Shebs <stan@codesourcery.com>
2795 Nathan Sidwell <nathan@codesourcery.com>
2796
2797 * breakpoint.c (breakpoint_1): Add filter argument, return number of
2798 breakpoints printed.
2799 (is_hardware_watchpoint): Make argument const.
2800 (is_watchpoint): Ditto.
2801 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
2802 use it everywhere.
2803 (breakpoints_info): Pass NULL to breakpoint_1.
2804 (maintenance_info_breakpoints): Ditto.
2805 (watchpoints_info): New function.
2806 (tracepoints_info): Use breakpoint_1 filter.
2807 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
2808 (_initialize_breakpoint): Make "info watchpoints" its own command.
2809 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
2810 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
2811
2812 2010-04-04 Stan Shebs <stan@codesourcery.com>
2813
2814 * tracepoint.c (tfile_fetch_registers): Add fallback case.
2815
2816 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2817
2818 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
2819 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
2820
2821 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2822
2823 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
2824 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
2825
2826 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2827
2828 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
2829 code form.
2830
2831 2010-04-02 Hui Zhu <teawater@gmail.com>
2832
2833 * i386-tdep.c (OT_DQUAD): New enum.
2834 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
2835 SSE3, SSSE3 and SSE4.
2836
2837 2010-04-02 Hui Zhu <teawater@gmail.com>
2838
2839 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
2840 "*addr = 0".
2841
2842 2010-04-02 Pedro Alves <pedro@codesourcery.com>
2843
2844 * tracepoint.c (trace_dump_actions): New, factored out from
2845 trace_dump_command, and adjusted to recurse into while-stepping's
2846 action list.
2847 (trace_dump_command): Use it.
2848
2849 2010-04-02 Pedro Alves <pedro@codesourcery.com>
2850
2851 * breakpoint.h (struct counted_command_line): Moved definition to
2852 breakpoint.c, and forward declare.
2853 (breakpoint_commands): Declare.
2854 * breakpoint.c (struct counted_command_line): Moved here.
2855 (breakpoint_commands): New.
2856 * tracepoint.c (encode_actions): Use breakpoint_commands.
2857 * remote.c (remote_download_tracepoint): Ditto.
2858
2859 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
2860
2861 * remote.c (remote_parse_stop_reply): Use hex_string instead
2862 of phex_nz for error.
2863
2864 2010-04-01 Stan Shebs <stan@codesourcery.com>
2865 Nathan Sidwell <nathan@codesourcery.com>
2866
2867 * tracepoint.h (enum actionline_type): Remove.
2868 (validate_actionline): Change return to void.
2869 * tracepoint.c (report_agent_reqs_errors): New function.
2870 (validate_actionline): Call it, change return to void, report errors
2871 more consistently.
2872 (collect_symbol): Call report_agent_reqs_errors.
2873 (encode_actions_1): Ditto.
2874 (encode_actions): Don't expect a result from validate_actionline.
2875
2876 2010-04-01 Stan Shebs <stan@codesourcery.com>
2877
2878 * tracepoint.c (trace_start_command): Confirm if trace is running.
2879 (trace_stop_command): Error if trace not running.
2880
2881 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
2882
2883 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
2884 (AMD64_NUM_LOWER_BYTE_REGS): New.
2885 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
2886 (amd64_pseudo_register_write): Likewise.
2887 (amd64_init_abi): Set num_byte_regs to 20.
2888
2889 2010-04-01 Pedro Alves <pedro@codesourcery.com>
2890
2891 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
2892 (prev_breakpoint_count): New.
2893 (set_breakpoint_count): Adjust.
2894 (rbreak_start_breakpoint_count): New.
2895 (start_rbreak_breakpoints): Adjust.
2896 (end_rbreak_breakpoints): Adjust.
2897 (struct commands_info) <arg>: New field.
2898 (do_map_commands_command): Tweak output to include breakpoint spec
2899 range.
2900 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
2901 ARG was empty on entry. Set INFO's arg.
2902 (create_breakpoint): Adjust.
2903
2904 * NEWS: Clarify `commands' changes.
2905
2906 2010-04-01 Pedro Alves <pedro@codesourcery.com>
2907
2908 * tracepoint.c: Include stack.h.
2909 (struct add_local_symbols_data): New.
2910 (do_collect_symbol): New.
2911 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
2912 iterate_over_block_local_vars.
2913 * stack.c (print_block_frame_locals): Rewrite as ...
2914 (iterate_over_block_locals): ... this. Take a callback function
2915 pointer and generic data pointer, and call that instead of
2916 print_variable_and_value.
2917 (struct print_variable_and_value_data): New.
2918 (do_print_variable_and_value): New.
2919 (iterate_over_block_local_vars): New, abstracted out from
2920 print_frame_local_vars.
2921 (print_frame_local_vars): Rewrite using
2922 iterate_over_block_local_vars.
2923 (iterate_over_block_arg_vars): New, abstracted out from
2924 print_frame_arg_vars.
2925 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
2926 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
2927 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
2928
2929 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
2930
2931 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
2932 instructions. Use the PC+4 if the base of the TBB or TBH is the
2933 PC register.
2934
2935 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2936
2937 Fix crash on reading wrong function declaration DWARF.
2938 * dwarf2read.c (read_subroutine_type): New variable void_type.
2939 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
2940 more close to their use.
2941
2942 2010-03-31 Stan Shebs <stan@codesourcery.com>
2943
2944 * breakpoint.c (tracepoint_save_command): Include variables,
2945 conditionals, tracepoint types, and default-collect.
2946 * tracepoint.c (save_trace_state_variables): New function.
2947 * tracepoint.h (save_trace_state_variables): Declare it.
2948
2949 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
2950
2951 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2952
2953 2010-03-30 Keith Seitz <keiths@redhat.com>
2954
2955 * c-typeprint.c (c_type_print_args): Don't print "void"
2956 for java, regardless of whether it is TYPE_PROTOTYPED.
2957 Use the passed-in language instead of current_language.
2958 (c_type_print_varspec_suffix): Use current_language instead
2959 of assuming language_c.
2960 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
2961 any return type specifier from the physname.
2962
2963 2010-03-30 Pedro Alves <pedro@codesourcery.com>
2964
2965 * tui/tui-interp.c (tui_is_toplevel): New.
2966 (tui_init): Set it.
2967 (tui_allowed_p): New.
2968 * tui/tui.c (tui_enable): Check if the TUI is allowed before
2969 enabling it.
2970 * tui/tui.h (tui_allowed_p): Declare.
2971
2972 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
2973
2974 * serial.h: Include winsock2.h before windows.h.
2975
2976 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
2977
2978 * NEWS: Mention xmlRegisters= in qSupported packet.
2979
2980 * i386-tdep.c: Include "remote.h".
2981 (_initialize_i386_tdep): Call register_remote_support_xml.
2982
2983 * remote.c (remote_support_xml): New.
2984 (register_remote_support_xml): Likewise.
2985 (remote_query_supported_append): Likewise.
2986 (remote_query_supported): Support remote_support_xml.
2987
2988 * remote.h (register_remote_support_xml): New.
2989
2990 2010-03-29 Stan Shebs <stan@codesourcery.com>
2991
2992 * tracepoint.c (trace_find_line_command): Remove dead code.
2993
2994 * tracepoint.h (struct uploaded_string): New struct.
2995 (struct uploaded_tp): New fields for source strings.
2996 * breakpoint.c (this_utp, next_cmd): New globals.
2997 (read_uploaded_action): New function.
2998 (create_tracepoint_from_upload): Fill in more parts
2999 of a tracepoint.
3000 * tracepoint.c (encode_source_string): New function.
3001 (trace_save): Write out source strings, fix error checks.
3002 (parse_tracepoint_definition): Add source string parsing.
3003 * remote.c (PACKET_TracepointSource): New packet type.
3004 (remote_download_command_source): New function.
3005 (remote_download_tracepoint): Download source pieces also.
3006 (_initialize_remote): Add packet config command.
3007
3008 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
3009 expression handler.
3010
3011 * tracepoint.c (start_tracing): Check tracepoints before sending
3012 commands to target, don't start if all tracepoints disabled.
3013
3014 2010-03-28 Pedro Alves <pedro@codesourcery.com>
3015
3016 * cli/cli-script.c (process_next_line): Handle 'stepping'.
3017
3018 2010-03-26 Stan Shebs <stan@codesourcery.com>
3019
3020 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
3021
3022 2010-03-26 Tom Tromey <tromey@redhat.com>
3023
3024 * breakpoint.c (commands_command_1): Duplicate 'arg'.
3025
3026 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3027
3028 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
3029 (skip_prologue_sal): Remove local definition.
3030 (resolve_sal_pc): Remove now unnecessary code.
3031 * linespec.c (minsym_found): Call skip_prologue_sal.
3032 * symtab.c (find_function_start_pc): Remove.
3033 (find_function_start_sal): Extract prologue skipping into ...
3034 (skip_prologue_sal): ... this new function. Handle code both
3035 with and without debug info. Respect SAL's explicit_pc and
3036 explicit_line flags. Inline old find_function_start_pc.
3037 * symtab.h (find_function_start_pc): Remove.
3038 (skip_prologue_sal): Add prototype.
3039
3040 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3041
3042 * dwarf2read.c (read_func_scope): Also scan specification DIEs
3043 for DW_TAG_imported_module children.
3044
3045 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3046
3047 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
3048 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
3049 * completer.c (add_struct_fields): Fix inverted logic.
3050
3051 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3052
3053 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
3054
3055 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3056
3057 * tracepoint.c (current_trace_status): Don't make sure error_desc
3058 is non-NULL here.
3059 (parse_trace_status): Release a previous error_desc string, and
3060 set it to NULL by default. If stop reason is tracepoint_error,
3061 make sure error_desc is not left NULL.
3062
3063 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3064
3065 * tracepoint.c (trace_save): Remove X from tracepoint error
3066 description.
3067
3068 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3069
3070 * tracepoint.c (parse_trace_status): Don't allow plain strings in
3071 the terror description. Don't expect an X prefix.
3072
3073 2010-03-25 Stan Shebs <stan@codesourcery.com>
3074
3075 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
3076 (struct trace_status): New field error_desc.
3077 * tracepoint.c (stop_reason_names): Add terror.
3078 (current_trace_status): Ensure non-NULL error description.
3079 (trace_status_command): Add error report.
3080 (trace_status_mi): Ditto.
3081 (trace_save): Add special case for error description.
3082 (parse_trace_status): Add case for errors.
3083
3084 2010-03-25 Keith Seitz <keiths@redhat.com>
3085
3086 * dwarf2read.c (read_subroutine_type): If the compilation unit
3087 language is Java, mark any formal parameter named "this" as
3088 artificial (GCC/43521).
3089 (dwarf2_name): Add special handling for Java constructors.
3090
3091 2010-03-25 Tom Tromey <tromey@redhat.com>
3092
3093 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
3094 * infrun.c (handle_inferior_event): Change initialization of
3095 stop_stack_dummy.
3096 (handle_inferior_event): Change assignment to stop_stack_dummy.
3097 (normal_stop): Update use of stop_stack_dummy.
3098 (struct inferior_status) <stop_stack_dummy>: Change type.
3099 * inferior.h (stop_stack_dummy): Update.
3100 * infcmd.c (stop_stack_dummy): Change type.
3101 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
3102 function.
3103 (call_function_by_hand): Call set_std_terminate_breakpoint.
3104 Rewrite std::terminate handling.
3105 * breakpoint.h (enum bptype) <bp_std_terminate,
3106 bp_std_terminate_master>: New.
3107 (enum stop_stack_kind): New.
3108 (struct bpstat_what) <call_dummy>: Change type.
3109 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
3110 Declare.
3111 * breakpoint.c (create_std_terminate_master_breakpoint): New
3112 function.
3113 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
3114 Call create_std_terminate_master_breakpoint.
3115 (print_it_typical): Handle new breakpoint kinds.
3116 (bpstat_stop_status): Handle bp_std_terminate_master.
3117 (bpstat_what): Correctly set call_dummy field. Handle
3118 bp_std_terminate_master and bp_std_terminate.
3119 (print_one_breakpoint_location): Update.
3120 (allocate_bp_location): Update.
3121 (set_std_terminate_breakpoint): New function.
3122 (delete_std_terminate_breakpoint): Likewise.
3123 (create_thread_event_breakpoint): Update.
3124 (delete_command): Update.
3125 (breakpoint_re_set_one): Update.
3126 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
3127
3128 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3129
3130 * symfile.c (build_section_addr_info_from_bfd): New.
3131 (build_section_addr_info_from_objfile): Base it on
3132 build_section_addr_info_from_bfd.
3133 (addrs_section_compar, addrs_section_sort): New.
3134 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
3135 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
3136 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
3137
3138 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
3139
3140 * elfread.c (find_separate_debug_file_by_buildid):
3141 Remove unused local variable.
3142
3143 2010-03-24 Tom Tromey <tromey@redhat.com>
3144
3145 PR breakpoints/9352:
3146 * NEWS: Mention changes to `commands' and `rbreak'.
3147 * symtab.c (do_end_rbreak_breakpoints): New function.
3148 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
3149 end_rbreak_breakpoints.
3150 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
3151 (set_breakpoint_count): Likewise. Clear last_was_multi.
3152 (multi_start, multi_end, last_was_multi): New globals.
3153 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
3154 functions.
3155 (struct commands_info): New
3156 (do_map_commands_command): New function.
3157 (commands_command_1): New function.
3158 (commands_command): Use it.
3159 (commands_from_control_command): Likewise.
3160 (do_delete_breakpoint): New function.
3161 (delete_command): Use it.
3162 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
3163 (do_map_disable_breakpoint): New function.
3164 (disable_command): Use it.
3165 (do_map_enable_breakpoint): New function.
3166 (enable_command): Use it.
3167 (enable_once_breakpoint): Add argument.
3168 (enable_once_command): Update.
3169 (enable_delete_breakpoint): Add argument.
3170 (enable_delete_command): Update.
3171 (break_command_really): Set last_was_multi when needed.
3172 (check_tracepoint_command): Fix formatting.
3173 (validate_commands_for_breakpoint): New function.
3174 (breakpoint_set_commands): Use it.
3175 (tracepoint_save_command): Update.
3176 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
3177 Declare.
3178
3179 2010-03-24 Tom Tromey <tromey@redhat.com>
3180
3181 * breakpoint.h (struct counted_command_line): New struct.
3182 (struct breakpoint) <commands>: Change type.
3183 (struct bpstats) <commands>: Change type.
3184 <commands_left>: New field.
3185 * breakpoint.c (alloc_counted_command_line): New function.
3186 (incref_counted_command_line): Likewise.
3187 (decref_counted_command_line): Likewise.
3188 (do_cleanup_counted_command_line): Likewise.
3189 (make_cleanup_decref_counted_command_line): Likewise.
3190 (breakpoint_set_commands): Use decref_counted_command_line and
3191 alloc_counted_command_line.
3192 (commands_command): Don't error if breakpoint commands are
3193 executing.
3194 (commands_from_control_command): Likewise.
3195 (bpstat_free): Update.
3196 (bpstat_copy): Likewise.
3197 (bpstat_clear_actions): Likewise.
3198 (bpstat_do_actions_1): Likewise.
3199 (bpstat_stop_status): Likewise.
3200 (print_one_breakpoint_location): Likewise.
3201 (delete_breakpoint): Likewise.
3202 (bpstat_alloc): Initialize new field.
3203 (tracepoint_save_command): Update.
3204 * tracepoint.c (encode_actions): Update.
3205 (trace_dump_command): Update.
3206
3207 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
3208
3209 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
3210 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
3211 (read_structure_type): For RealView, set TYPE_STUB on structures with
3212 no byte size and no children.
3213 (read_subroutine_type): Mark functions as prototyped by default.
3214 * symtab.c (producer_is_realview): New function.
3215 * symtab.h (expand_line_sal): Fix declaration formatting.
3216 (producer_is_realview): Declare.
3217
3218 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
3219
3220 * arm-tdep.c (skip_prologue_function): New function.
3221 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
3222 (thumb_analyze_prologue): Document return value. Recognize more
3223 Thumb instructions, skippable calls, and some Thumb-2 instructions.
3224 Add debug output.
3225 (arm_skip_prologue): Remove call dummy check. Check the prologue
3226 for non-GNU compilers.
3227 (arm_instruction_changes_pc): New function.
3228 (arm_analyze_prologue): New function, broken out from
3229 arm_scan_prologue. Recognize more ARM instructions and skippable
3230 calls. Update comments. Handle NULL cache. Return the address
3231 of the first unrecognized instruction. Do not skip past other
3232 instructions which change control flow. Add debug output.
3233 (arm_scan_prologue): Use arm_analyze_prologue.
3234 (ARM_PC_32): Delete.
3235 (shifted_reg_val): Simplify ARM_PC_32 check.
3236
3237 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3238
3239 * tracepoint.c (tvariables_info_1): Actually compute
3240 the number of rows in the result.
3241
3242 2010-03-24 Pedro Alves <pedro@codesourcery.com>
3243
3244 * remote.c (crc32): Constify `buf' parameter.
3245 (remote_verify_memory): New, abstracted out from...
3246 (compare_sections_command): ... this. Remove hardcoded target
3247 checks.
3248 (init_remote_ops): Install remote_verify_memory.
3249 * target.c (target_verify_memory): New.
3250 * target.h (struct target_ops) <to_verify_memory>: New field.
3251 (target_verify_memory): Declare.
3252
3253 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3254
3255 Implement -trace-save.
3256
3257 * mi-cmds.h (mi_cmds_trace_save): Declare.
3258 * mi-cmds.c (mi_cmds): Register -trace-save.
3259 * mi/mi-main.c (mi_cmd_trace_save): New.
3260 * remote.c (remote_save_trace_data): Take const parameter.
3261 * target.h (struct target_ops::to_save_trace_data): Take
3262 const parameter.
3263 * target.c (update_current_target): Adjust to the above.
3264 * tracepoint.c (trave_save): New, extracted from
3265 (trace_save_command): ...this.
3266 (tfile_trace_find): Remove message that is unnecessary now
3267 that 'tfind' reports found frame.
3268 * tracepoint.h (trace_save): Declare.
3269
3270 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3271
3272 Implement -trace-find.
3273
3274 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
3275 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
3276 * mi/mi-main.c (mi_cmd_trace_find): New.
3277 * target.h (struct target_ops): Document to_trace_find.
3278 * tracepoint.h (tfind_1): Declare.
3279 * tracepoint.c (finish_tfind_command): Rename to...
3280 (tfind_1): ...this.
3281 * remote.c (remote_trace_find): Return -1 if target say
3282 there's no frame. Improve error diagnostics.
3283
3284 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3285
3286 -trace-define-variable and -trace-list-variables.
3287
3288 * tracepoint.c (create_trace_state_variable): Make
3289 private copy of name, as opposed to assuming the
3290 pointer lives forever.
3291 (tvariables_info_1): New.
3292 (tvariables_info): Use the above.
3293 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
3294 Declare.
3295 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
3296 and -trace-list-variables.
3297 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
3298 (mi_cmd_trace_list_variables): New.
3299 * mi/mi-main.c (mi_cmd_trace_define_variable)
3300 (mi_cmd_trace_list_variables): New.
3301
3302 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3303
3304 Implement -break-passcount.
3305
3306 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
3307 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
3308 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
3309
3310 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3311
3312 -trace-start/-trace-end/-trace-status.
3313
3314 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
3315 and -trace-stop.
3316 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
3317 (mi_cmd_trace_stop): Declare.
3318 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
3319 (mi_cmd_trace_stop): New.
3320 * tracepoint.c (start_tracing): New, extracted from...
3321 (trace_start_command): ...this.
3322 (trace_status_mi): New.
3323 * tracepoint.h (struct trace_status): Document
3324 stopping_tracepoint.
3325 (start_tracing, stop_tracing, trace_status_mi): Declare.
3326
3327 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3328
3329 Implement creating tracepoints with -break-insert.
3330
3331 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
3332 to mean that tracepoint should be created.
3333
3334 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3335
3336 * breakpoint.c (check_no_tracepoint_commands): Use
3337 current spelling of 'teval'.
3338
3339 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3340
3341 Unify actions and commands
3342
3343 * defs.h (read_command_lines, read_command_lines_1): New
3344 parameters validator and closure.
3345 * tracepoint.h (struct action_line): Remove.
3346 * breakpoint.h (struct breakpoint): Remove the 'actions'
3347 field.
3348 * defs.h (enum command_control_type): New value
3349 while_stepping_control.
3350 (struct command_line): Add comments.
3351 * breakpoint.c (breakoint_is_tracepoint): New.
3352 (breakpoint_set_commands): For tracepoints,
3353 verify the commands are permissible.
3354 (check_tracepoint_commands): New.
3355 (commands_command): Require that each new line is validated using
3356 check_tracepoint_command, if we set commands for a tracepoint.
3357 (create_tracepoint_from_upload): Likewise.
3358 (print_one_breakpoint_location): Remove the code to print
3359 actions specifically.
3360 (tracepoint_save_command): Relay to print_command_lines.
3361 * cli/cli-script.c (process_next_line): New parameters validator
3362 and closure. Handle 'while-stepping'. Call validator if not null.
3363 (read_command_lines, read_command_lines1): Likewise.
3364 (recurse_read_control_structure): New parameters validator and
3365 closure. Handle while_stepping_control.
3366 (print_command_lines): Handle while-stepping.
3367 (get_command_line, define_command, document_command): Adjust.
3368 * remote.c (remote_download_tracepoint): Adjust.
3369 * tracepoint.c (make_cleanup_free_actions, read_actions)
3370 (free_actions, do_free_actions_cleanup): Remove.
3371 (trace_actions_command): Use read_command_lines.
3372 (validate_actionline): Use error in one place.
3373 (encode_actions_1): New, extracted from...
3374 (encode_actions): ...this. Also use cleanups for exception
3375 safety.
3376 (trace_dump_command): Adjust.
3377 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
3378 it's tracepoint.
3379
3380 2010-03-23 Mike Frysinger <vapier@gentoo.org>
3381
3382 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
3383
3384 2010-03-22 Stan Shebs <stan@codesourcery.com>
3385
3386 * value.c (value_static_field): Be lazy about the field's value.
3387
3388 2010-03-22 Reid Kleckner <reid@kleckner.net>
3389
3390 PR gdb/11094
3391 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
3392 bp_jit_event.
3393 (disable_breakpoints_in_shlibs): Likewise.
3394
3395 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
3396
3397 * dwarf2read.c (partial_die_parent_scope): Work around buggy
3398 GCC 4.1 debug info generation (GCC PR c++/28460).
3399 (determine_prefix): Likewise.
3400
3401 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
3402
3403 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
3404 get_current_arch.
3405 * tui/tui-layout.c (extract_display_start_addr): Likewise.
3406
3407 2010-03-19 Stan Shebs <stan@codesourcery.com>
3408
3409 * ax-gdb.c (gen_fetch): Handle bool.
3410 (gen_usual_unary): Ditto.
3411 (gen_cast): Ditto.
3412 (gen_equal): New function.
3413 (gen_less): New function.
3414 (gen_expr_binop_rest): Call them, also return integer type from
3415 logical operations.
3416 (gen_expr): Ditto.
3417
3418 2010-03-19 Tom Tromey <tromey@redhat.com>
3419
3420 * jv-lang.c (jv_dynamics_objfile_data_key)
3421 (jv_type_objfile_data_key): New globals.
3422 (class_symtab): Move earlier.
3423 (jv_per_objfile_free): New function.
3424 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
3425 parameter.
3426 Remove ancient #if 1.
3427 (add_class_symbol): Remove redundant declaration.
3428 (java_lookup_class): Use alloc_type, not alloc_type_arch.
3429 (java_link_class_type): Mark as static. Update.
3430 (jv_clear_object_type): New function.
3431 (set_java_object_type): Likewise.
3432 (get_java_object_type): Use set_java_object_type.
3433 (is_object_type): Likewise.
3434 (_initialize_java_language): Register new objfile keys.
3435 (get_java_class_symtab): Add 'gdbarch' parameter.
3436 (add_class_symtab_symbol): Update.
3437 (type_from_class): Update.
3438
3439 2010-03-19 Stan Shebs <stan@codesourcery.com>
3440
3441 * ax-general.c (ax_const_l): Fix a sizing bug.
3442
3443 2010-03-18 Joel Brobecker <brobecker@adacore.com>
3444
3445 GDB 7.1 released.
3446
3447 2010-03-18 Stan Shebs <stan@codesourcery.com>
3448 Pedro Alves <pedro@codesourcery.com>
3449
3450 * target.h (struct target_ops): New method
3451 to_set_circular_trace_buffer.
3452 (target_set_circular_trace_buffer): New macro.
3453 * target.c (update_current_target): Add
3454 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
3455 default behavior.
3456 * remote.c (remote_set_circular_trace_buffer): New function.
3457 (init_remote_ops): Add it to vector.
3458 * tracepoint.h (struct trace_status): New field traceframes_created,
3459 change buffer_size and buffer_free to int.
3460 * tracepoint.c (circular_trace_buffer): New global.
3461 (start_tracing): Send values of disconnected tracing and circular
3462 trace buffer settings.
3463 (set_circular_trace_buffer): New function.
3464 (parse_trace_state): Handle total space and frames created.
3465 (trace_status_command): Display total space and total frames
3466 created.
3467 (trace_save): Write out new status values.
3468 (parse_trace_status): Set traceframe_count, traceframes_created,
3469 buffer_free and buffer_size to -1 by default.
3470 (_initialize_tracepoint): New setshow for circular-trace-buffer.
3471 * NEWS: Mention the circular trace buffer option.
3472
3473 2010-03-18 Tom Tromey <tromey@redhat.com>
3474
3475 * infcmd.c (finish_command_continuation): Wrap print_return_value
3476 in TRY_CATCH.
3477
3478 2010-03-18 Joel Brobecker <brobecker@adacore.com>
3479
3480 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
3481 DIE has a name before creating the associated partial symbol.
3482 (read_func_scope): Emit a complaint if the subprogram does not
3483 have a name or when we can't extract the subprogram PC bounds.
3484
3485 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
3486
3487 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
3488 instead of selected frame architecture.
3489
3490 2010-03-18 Pedro Alves <pedro@codesourcery.com>
3491
3492 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
3493 a valid selected thread, and that it is not running.
3494 (advance_command): Ditto.
3495 (finish_command): Ditto.
3496
3497 2010-03-17 Stan Shebs <stan@codesourcery.com>
3498
3499 * ax-gdb.c (require_rvalue): Disallow non-scalars.
3500
3501 * infcall.c: Include tracepoint.h.
3502 (call_function_by_hand): Disallow calls in tfind mode.
3503 * infcmd.c: Include tracepoint.h.
3504 (ensure_not_tfind_mode): New function.
3505 (continue_1): Call it.
3506 (step_1) Ditto.
3507 (jump_command): Ditto.
3508 (signal_command): Ditto.
3509 (advance_command): Ditto.
3510 (until_command): Ditto.
3511 (finish_command): Ditto.
3512 * tracepoint.h (disconnect_or_stop_tracing): Declare.
3513
3514 * ax-gdb.h (struct axs_value): New field optimized_out.
3515 (gen_trace_for_var): Add gdbarch argument.
3516 * ax-gdb.c (gen_trace_static_fields): New function.
3517 (gen_traced_pop): Call it, add gdbarch argument.
3518 (gen_trace_for_expr): Update call to it.
3519 (gen_trace_for_var): Ditto, and report optimized-out variables.
3520 (gen_struct_ref_recursive): Check for optimized-out value.
3521 (gen_struct_elt_for_reference): Ditto.
3522 (gen_static_field): Pass gdbarch instead of expression, assume
3523 optimization if field not found.
3524 (gen_var_ref): Set the optimized_out flag.
3525 (gen_expr): Error on optimized-out variable.
3526 * tracepoint.c (collect_symbol): Handle struct-valued vars as
3527 expressions, skip optimized-out variables with computed locations.
3528 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
3529 erroring out if location expression missing.
3530 (loclist_tracepoint_var_ref): Don't error out here.
3531
3532 2010-03-17 Tom Tromey <tromey@redhat.com>
3533
3534 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
3535 DWARF data is available.
3536
3537 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
3538
3539 * symfile.c (generic_load): Reset breakpoints after loading.
3540
3541 2010-03-17 Tom Tromey <tromey@redhat.com>
3542
3543 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
3544
3545 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3546
3547 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
3548 create_breakpoint call, adjust the parameters.
3549
3550 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3551 Chandru <chandru@in.ibm.com>
3552
3553 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
3554 * valarith.c (value_subscripted_rvalue): Suppress error if
3555 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
3556
3557 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
3558
3559 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
3560
3561 2010-03-16 Joel Brobecker <brobecker@adacore.com>
3562
3563 * ada-tasks.c (task_command_1): Check that the task ptid is valid
3564 before doing the associated thread switch.
3565
3566 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
3567
3568 * MAINTAINERS: Update my email address.
3569
3570 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
3571
3572 Simplify MI breakpoint setting.
3573
3574 * breakpoint.c (break_command_really): Make nonstatic and
3575 rename to...
3576 (create_breakpoint): ...this. Rename prior function by this name
3577 to...
3578 (create_breakpoint_sal): ...this.
3579 (create_breakpoints): Rename to...
3580 (create_breakpoints_sal): ...this.
3581 (set_breakpoint): Remove.
3582 * breakpoint.h: Adjust to above changes.
3583 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
3584
3585 2010-03-15 Stan Shebs <stan@codesourcery.com>
3586
3587 * ax-gdb.c: Include cp-support.h.
3588 (find_field): Remove.
3589 (gen_primitive_field): New function.
3590 (gen_struct_ref_recursive): New function.
3591 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
3592 of find_field.
3593 (gen_static_field): New function.
3594 (gen_struct_elt_for_reference): New.
3595 (gen_namespace_elt): New.
3596 (gen_maybe_namespace_elt): New.
3597 (gen_aggregate_elt_ref): New.
3598 (gen_expr): Add OP_SCOPE, display opcode name in error message.
3599
3600 2010-03-15 Tom Tromey <tromey@redhat.com>
3601
3602 * dwarf2read.c (die_needs_namespace): Also return 0 for
3603 DW_TAG_subprogram.
3604
3605 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
3606
3607 PR c++/7936:
3608 * cp-support.h: Added char *declaration element to using_direct
3609 data struct.
3610 (cp_add_using): Added char *declaration argument.
3611 (cp_add_using_directive): Ditto.
3612 (cp_lookup_symbol_imports): made extern.
3613 * cp-namespace.c: Updated with the above changes.
3614 * dwarf2read.c (read_import_statement): Ditto.
3615 (read_namespace): Ditto.
3616 (read_import_statement): Support import declarations.
3617 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
3618 declarations.
3619 Added support for 'declaration_only' search.
3620 (cp_lookup_symbol_namespace): Attempt to search for the name as
3621 is before consideration of imports.
3622 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
3623 search at every block level search.
3624 Now takes language argument.
3625 (lookup_symbol_aux): Updated.
3626
3627 2010-03-15 Tom Tromey <tromey@redhat.com>
3628
3629 * c-exp.y (name_not_typename): Add 'operator' clause.
3630
3631 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
3632
3633 * configure.ac: Exit if ${gdb_target_obs}" is not set.
3634 * configure: Regenerate.
3635
3636 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3637
3638 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
3639 and ".sdynbss". Update the comment.
3640
3641 2010-03-15 Jie Zhang <jie@codesourcery.com>
3642
3643 * MAINTAINERS: Update my email address.
3644
3645 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
3646
3647 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
3648
3649 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
3650
3651 * charset.c [USE_WIN32API]: Include <windows.h>.
3652 (_initialize_charset): Correct type of w32_host_default_charset.
3653
3654 2010-03-14 Pedro Alves <pedro@codesourcery.com>
3655
3656 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
3657
3658 2010-03-12 Tom Tromey <tromey@redhat.com>
3659
3660 PR c++/9708:
3661 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
3662 in a lexical block does not need a namespace.
3663 (new_symbol) <DW_TAG_variable>: Put extern variables on
3664 list_in_scope in all cases.
3665
3666 2010-03-12 Stan Shebs <stan@codesourcery.com>
3667
3668 * ax-gdb.c (gen_expr): Add shift expressions.
3669 (gen_expr_binop_rest): Ditto.
3670
3671 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
3672
3673 * buildsym.c (finish_block): Reset using_directives pointer
3674 after block initialization.
3675
3676 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
3677
3678 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
3679 * i386-tdep.c (i386_word_names): Likewise.
3680
3681 2010-03-12 Pedro Alves <pedro@codesourcery.com>
3682
3683 * target.c (memory_xfer_partial): Don't use the stack cache if
3684 inspecting trace frames.
3685 * tracepoint.c (finish_tfind_command): Invalidate the target
3686 dcache.
3687
3688 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3689
3690 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
3691 for the PIC displacement, print also the displacement value.
3692 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
3693
3694 2010-03-10 Kevin Buettner <kevinb@redhat.com>
3695
3696 * remote-mips.c (close_ports, mips_initialize_cleanups)
3697 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
3698 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
3699 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
3700 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
3701 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
3702 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
3703 comments describing each of these functions.
3704 (mips_enter_debug, mips_exit_debug, common_open)
3705 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
3706 blank line after the comment describing the function.
3707
3708 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3709
3710 * solib-svr4.c (svr4_exec_displacement): Return now success, new
3711 parameter displacementp. Update comment.
3712 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
3713 element exists. Return if svr4_exec_displacement was not successful.
3714 Update comment.
3715
3716 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3717 Daniel Jacobowitz <dan@codesourcery.com>
3718
3719 * solib-svr4.c (read_program_header): Support type == -1 to read
3720 all program headers.
3721 (read_program_headers_from_bfd): New function.
3722 (svr4_static_exec_displacement): Remove and move the comment ...
3723 (svr4_exec_displacement): ... here. Remove variable found. New
3724 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
3725 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
3726 targets using read_program_headers_from_bfd. Remove the call of
3727 svr4_static_exec_displacement.
3728
3729 2010-03-10 Tom Tromey <tromey@redhat.com>
3730
3731 * dwarf2read.c (struct pubnames_header): Remove.
3732 (_PUBNAMES_HEADER): Remove.
3733 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
3734 (struct aranges_header): Remove.
3735 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
3736 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
3737 (PUBNAMES_SECTION): Remove.
3738 (ARANGES_SECTION): Remove.
3739 (dwarf2_locate_sections): Don't handle pubnames or aranges.
3740 (dwarf2_build_psymtabs): Remove dead code.
3741 (dwarf2_build_psymtabs_easy): Remove.
3742
3743 2010-03-10 Tom Tromey <tromey@redhat.com>
3744
3745 * elfread.c (elf_symfile_read): Don't call
3746 dwarf2_build_frame_info.
3747 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
3748 (struct dwarf2_per_objfile) <objfile>: New field.
3749 (dwarf2_has_info): Now idempotent. Set objfile field.
3750 (dwarf2_read_section): Check and set readin field. Call
3751 posix_madvise.
3752 (dwarf2_build_psymtabs): Don't read all sections.
3753 (read_type_comp_unit_head): Read types section.
3754 (create_debug_types_hash_table): Likewise.
3755 (init_cu_die_reader): Add asserts.
3756 (process_type_comp_unit): Add assert.
3757 (dwarf2_build_psymtabs_hard): Read info section.
3758 (load_partial_comp_unit): Add assert.
3759 (create_all_comp_units): Read info section.
3760 (load_full_comp_unit): Likewise.
3761 (dwarf2_ranges_read): Read ranges section.
3762 (dwarf2_record_block_ranges): Add assert.
3763 (dwarf2_read_abbrevs): Read abbrev section.
3764 (read_indirect_string): Read str section.
3765 (dwarf_decode_line_header): Read line section.
3766 (read_signatured_type_at_offset): Read types section.
3767 (dwarf_decode_macros): Read macinfo section.
3768 (dwarf2_symbol_mark_computed): Read loc section.
3769 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
3770 dwarf2_build_frame_info.
3771 (dwarf2_build_frame_info): Unconditionally set
3772 dwarf2_frame_objfile_data on the objfile.
3773 * configure.ac: Check for posix_madvise.
3774 * config.in, configure: Rebuild.
3775
3776 2010-03-10 Tom Tromey <tromey@redhat.com>
3777
3778 * xcoffread.c (xcoff_start_psymtab): Update.
3779 (xcoff_end_psymtab): Update.
3780 * psymtab.c (allocate_psymtab): Remove dead code.
3781 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
3782 void*.
3783 * mdebugread.c (parse_partial_symbols): Update.
3784 (new_psymtab): Likewise.
3785 * dwarf2read.c (process_psymtab_comp_unit): Update.
3786 (psymtab_to_symtab_1): Update.
3787 * dbxread.c (start_psymtab): Update.
3788 (end_psymtab): Likewise.
3789
3790 2010-03-10 Tom Tromey <tromey@redhat.com>
3791
3792 * xcoffread.c: Include psymtab.h.
3793 (xcoff_sym_fns): Update.
3794 * symtab.h (struct partial_symbol): Remove.
3795 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
3796 (struct partial_symtab): Remove.
3797 (PSYMTAB_TO_SYMTAB): Remove.
3798 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
3799 (find_pc_sect_psymtab): Remove.
3800 (find_pc_sect_symtab_via_partial): Declare.
3801 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
3802 (find_main_psymtab): Remove.
3803 (find_main_filename): Declare.
3804 (fixup_psymbol_section): Remove.
3805 (fixup_section): Declare.
3806 * symtab.c: Include psymtab.h.
3807 (lookup_symtab): Use lookup_symtab method.
3808 (lookup_partial_symtab): Remove.
3809 (find_pc_sect_psymtab_closer): Remove.
3810 (find_pc_sect_psymtab): Remove.
3811 (find_pc_sect_symtab_via_partial): New function.
3812 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
3813 (fixup_section): No longer static.
3814 (fixup_psymbol_section): Remove.
3815 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
3816 (lookup_global_symbol_from_objfile): Likewise.
3817 (lookup_symbol_aux_psymtabs): Remove.
3818 (lookup_symbol_aux_quick): New function.
3819 (lookup_symbol_global): Use lookup_symbol_aux_quick.
3820 (lookup_partial_symbol): Remove.
3821 (basic_lookup_transparent_type_quick): New function.
3822 (basic_lookup_transparent_type): Use it.
3823 (find_main_psymtab): Remove.
3824 (find_main_filename): New function.
3825 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
3826 (find_line_symtab): Use expand_symtabs_with_filename method.
3827 (output_partial_symbol_filename): New function.
3828 (sources_info): Use map_partial_symbol_filenames.
3829 (struct search_symbols_data): New type.
3830 (search_symbols_file_matches): New function.
3831 (search_symbols_name_matches): Likewise.
3832 (search_symbols): Use expand_symtabs_matching method.
3833 (struct add_name_data): Rename from add_macro_name_data.
3834 (add_macro_name): Update.
3835 (add_partial_symbol_name): New function.
3836 (default_make_symbol_completion_list): Use
3837 map_partial_symbol_names.
3838 (struct add_partial_symbol_name): New type.
3839 (maybe_add_partial_symtab_filename): New function.
3840 (make_source_files_completion_list): Use
3841 map_partial_symbol_filenames.
3842 (expand_line_sal): Use expand_symtabs_with_filename method.
3843 * symmisc.c: Include psymtab.h.
3844 (print_objfile_statistics): Use print_stats method.
3845 (dump_objfile): Use dump method.
3846 (dump_psymtab, maintenance_print_psymbols)
3847 (maintenance_info_psymtabs, maintenance_check_symtabs)
3848 (extend_psymbol_list): Remove.
3849 * symfile.h (struct quick_symbol_functions): New struct.
3850 (struct sym_fns) <qf>: New field.
3851 (sort_pst_symbols): Remove.
3852 (increment_reading_symtab): Declare.
3853 * symfile.c: Include psymtab.h.
3854 (compare_psymbols, sort_pst_symbols): Remove.
3855 (psymtab_to_symtab): Remove.
3856 (increment_reading_symtab): New function.
3857 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
3858 method.
3859 (set_initial_language): Use find_main_filename.
3860 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
3861 (free_named_symtabs): Remove unused code.
3862 (start_psymtab_common, add_psymbol_to_bcache)
3863 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
3864 Remove.
3865 * stack.c: Include psymtab.h, symfile.h.
3866 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
3867 * source.h (psymtab_to_fullname): Don't declare.
3868 * source.c: Include psymtab.h.
3869 (select_source_symtab): Use find_last_source_symtab method.
3870 (forget_cached_source_info): Use forget_cached_source_info
3871 method.
3872 (find_and_open_source): No longer static.
3873 (psymtab_to_fullname): Remove.
3874 * somread.c: Include psymtab.h.
3875 (som_sym_fns): Update.
3876 * psympriv.h: New file.
3877 * psymtab.h: New file.
3878 * psymtab.c: New file.
3879 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
3880 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
3881 * objfiles.c: Include psymtab.h.
3882 (objfile_relocate1): Use relocate method.
3883 (objfile_has_partial_symbols): Use has_symbols method.
3884 * mipsread.c: Include psymtab.h.
3885 (ecoff_sym_fns): Update.
3886 * mi/mi-cmd-file.c: Include psymtab.h.
3887 (print_partial_file_name): New function.
3888 (mi_cmd_file_list_exec_source_files): Use
3889 map_partial_symbol_filenames.
3890 * mdebugread.c: Include psympriv.h.
3891 * machoread.c: Include psympriv.h.
3892 (macho_sym_fns): Update.
3893 * m2-exp.y (yylex): Use lookup_symtab.
3894 * elfread.c: Include psympriv.h.
3895 (elf_sym_fns): Update.
3896 * dwarf2read.c: Include psympriv.h.
3897 * dbxread.c: Include psympriv.h.
3898 (aout_sym_fns): Update.
3899 * cp-support.c: Include psymtab.h.
3900 (read_in_psymtabs): Remove.
3901 (make_symbol_overload_list_qualified): Use
3902 expand_symtabs_for_function method.
3903 * coffread.c: Include psympriv.h.
3904 (coff_sym_fns): Update.
3905 * blockframe.c: Include psymtab.h.
3906 (find_pc_partial_function): Use find_pc_sect_symtab method.
3907 * ada-lang.h (ada_update_initial_language): Update.
3908 * ada-lang.c: Include psymtab.h.
3909 (ada_update_initial_language): Remove 'main_pst' argument.
3910 (ada_lookup_partial_symbol): Remove.
3911 (struct ada_psym_data): New type.
3912 (ada_add_psyms): New function.
3913 (ada_add_non_local_symbols): Use map_ada_symtabs method.
3914 (struct add_partial_datum): New type.
3915 (ada_add_partial_symbol_completions): New function.
3916 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
3917 (ada_exception_support_info_sniffer): Update.
3918 * Makefile.in (SFILES): Add psymtab.c.
3919 (COMMON_OBS): Add psymtab.o.
3920 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
3921
3922 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
3923
3924 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
3925
3926 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
3927
3928 PR C++/11236:
3929 * cp-namespace.c (cp_add_using): Deleted.
3930 (cp_add_using_directive): Use obstack allocations.
3931 Merged the function cp_add_using into this one.
3932 Added 'struct obstack *' argument.
3933 (cp_scan_for_anonymous_namespaces): Updated.
3934 * cp-support.h: Updated.
3935 * dwarf2read.c (read_import_statement): Updated.
3936 (read_namespace): Updated.
3937
3938 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
3939
3940 * windows-nat.c (cygwin_conv_path): Remove old macro.
3941
3942 2010-03-10 Pedro Alves <pedro@codesourcery.com>
3943
3944 * breakpoint.c (condition_command): Handle watchpoint conditions.
3945 (is_hardware_watchpoint): Add comment.
3946 (is_watchpoint): New.
3947 (update_watchpoint): Don't reparse the watchpoint's condition
3948 unless necessary.
3949 (WP_IGNORE): New.
3950 (watchpoint_check): Use it.
3951 (bpstat_check_watchpoint): Handle it.
3952 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
3953 conditions in a frame where it makes sense.
3954 (watch_command_1): Store the innermost block of the condition
3955 expression.
3956 (delete_breakpoint): Delete the watchpoint condition expression.
3957 * breakpoint.h (struct bp_location) <cond>: Update comment.
3958 (struct breakpoint): New field `cond_exp_valid_block'.
3959
3960 2010-03-09 Joel Brobecker <brobecker@adacore.com>
3961
3962 Adjust handling of Ada DIEs after dwarf2_physname patch.
3963 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
3964
3965 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
3966 Pierre Muller <muller@ics.u-strasbg.fr>
3967
3968 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
3969 from/to posix/win32.
3970 (windows_make_so): Use non-Cygwin 1.7 specific function.
3971 (windows_create_inferior): Make sure that cygallargs points to
3972 original args in non Cygwin 1.7. case.
3973
3974 2010-03-09 Michael Snyder <msnyder@vmware.com>
3975
3976 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
3977 after target_read_memory to get host byte order.
3978 (i386_process_record): Ditto.
3979
3980 2010-03-09 Keith Seitz <keiths@redhat.com>
3981
3982 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
3983 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
3984 print out const or volatile qualifiers, too.
3985 (c_type_print_args): Add parameters show_artificial and language.
3986 Skip artificial parameters when requested.
3987 Use the appropriate language printer.
3988 (c_type_print_varspec): Tell c_type_print_args to skip artificial
3989 parameters and pass language_c.
3990 * dwarf2read.c (die_list): New file global.
3991 (struct partial_die_info): Update comments for name field.
3992 (pdi_needs_namespace): Renamed to ...
3993 (die_needs_namespace): ... this. Rewrite.
3994 (dwarf2_linkage_name): Remove.
3995 (add_partial_symbol): Do not predicate the call to
3996 partial_die_full_name based on pdi_needs_namespace.
3997 Remove call to cp_check_possible_namespace_symbols and associated
3998 outdated comments.
3999 (guess_structure_name): Do not inspect child subprogram DIEs.
4000 (dwarf2_fullname): Update comments.
4001 Use die_needs_namespace to assist in computing the name.
4002 (read_func_scope): Use dwarf2_name to get the DIE's name.
4003 Use dwarf2_physname to get the "linkage name" of the DIE.
4004 (dwarf2_add_member_field): Use dwarf2_physname instead of
4005 dwarf2_linkage_name.
4006 (read_structure_type): For structs and classes, set TYPE_NAME, too.
4007 (determine_class): Remove.
4008 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
4009 except Ada.
4010 (new_symbol): Unconditionally call dwarf2_name.
4011 Compute the "linkage name" using dwarf2_physname.
4012 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
4013 When determining to scan for anonymous C++ namespaces, ignore
4014 the linkage name.
4015 (dwarf2_physname): New function.
4016 (dwarf2_full_name): Move content to new function and call
4017 that.
4018 (dwarf2_compute_name): "New" function.
4019 (_initialize_dwarf2_read): Initialize die_list.
4020 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
4021 physname.
4022 (gnu_v3_print_method_ptr): Use the physname for virtual methods
4023 without a demangled name.
4024 Print out type information for non-virtual methods.
4025 * linespec.c (decode_line_1): Force ANY string using "::" (or
4026 "." for java) to use decode_compound, and clean up any stray quoting.
4027 If we found a file symtab, re-evaluate whether the remainder is_quoted.
4028 (decode_compound): Stop consuming at an open parenthesis.
4029 Keep template parameters.
4030 Keep any overload information.
4031 Keep keywords like "const".
4032 Remove paren_pointer.
4033 Move is_quoted check from set_flags to here.
4034 Remove #if 0 code from 2000. Ten years is long enough.
4035 (find_method): Before comparing symbol names, canonicalize the string
4036 from the user.
4037 If a specific overload is requested, find it. Otherwise throw an error.
4038 (find_method_overload_end): New function.
4039 (set_flags): Remove.
4040 (decode_compound): Assume that parentheses are matched.
4041 It's a lot easier.
4042 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
4043 to cplus_demangle.
4044 * linespec.c (decode_line_1): Keep important keywords like
4045 "const" and "volatile".
4046 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
4047 * typeprint.h (c_type_print_args): Add declaration.
4048 * ui-file.c (do_ui_file_obsavestring): New function.
4049 (ui_file_obsavestring): New function.
4050 * ui-file.h (ui_file_obsavestring): Add declaration.
4051 * valops.c (find_overload_match): Resolve the object to
4052 a non-pointer type.
4053 If the object is a data member, search the object for the member
4054 and return with staticp set.
4055 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
4056 Do not attempt to extract a function name from non-function types.
4057 If the extracted function name and the original name are the same,
4058 we don't have a C++ method.
4059
4060 From Jan Kratochvil <jan.kratochvil@redhat.com>:
4061 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
4062
4063 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
4064 and arguments from symbol lookups.
4065 * ax-gdb.c (gen_expr): Likewise.
4066 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
4067 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
4068 lookup_possible_namespace_symbol): Likewise.
4069 * cp-support.c (read_in_psymtabs): Likewise.
4070 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
4071 * language.h (la_lookup_symbol_nonlocal): Likewise.
4072 * scm-valprint.c (scm_inferior_print): Likewise.
4073 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
4074 * solib-svr.c (elf_lookup_lib): Likewise.
4075 * solib.c (show_auto_solib_add): Likewise.
4076 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
4077 * symmisc.c (maintenance_check_symtabs): Likewise.
4078 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
4079 lookup_symbol_aux_local, lookup_symbol_aux_block,
4080 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
4081 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
4082 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
4083 basic_lookup_transparent_type, find_main_psymtab,
4084 lookup_block_symbol): Likewise.
4085 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
4086 lookup_symbol_global, lookup_symbol_aux_block,
4087 lookup_symbol_partial_symbol, lookup_block_symbol,
4088 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
4089
4090 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
4091
4092 * python/python-internal.h: Include symtab.h.
4093
4094 2010-03-09 Joel Brobecker <brobecker@adacore.com>
4095 Pierre Muller <muller@ics.u-strasbg.fr>
4096
4097 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
4098 * p-valprint.c (pascal_val_print): Remove undeed block and fix
4099 indentation.
4100
4101 2010-03-08 Tom Tromey <tromey@redhat.com>
4102
4103 * breakpoint.c (breakpoint_1): Add "QUIT".
4104
4105 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
4106 Pedro Alves <pedro@codesourcery.com>
4107
4108 * solib.c (solib_find): Replace extension if
4109 solib_symbols_extension is set in the target gdbarch.
4110 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
4111 solib_symbols_extension to "sym".
4112 * gdbarch.sh (solib_symbols_extension): New variable.
4113 (pstring): New function.
4114 * gdbarch.h, gdbarch.c: Regenerate.
4115
4116 2010-03-08 Tom Tromey <tromey@redhat.com>
4117
4118 PR cli/9591:
4119 * NEWS: Update.
4120 * utils.c: Include main.h.
4121 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
4122 (defaulted_query): Use default answer if `batch_flag'.
4123 * main.h (batch_flag): Declare.
4124 * main.c (batch_flag): New global.
4125 (captured_main): Remove 'batch'. Update.
4126
4127 2010-03-08 Kevin Buettner <kevinb@redhat.com>
4128
4129 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
4130 and Kevin Buettner:
4131
4132 * remote-mips.c (rockhopper_ops): New target_ops struct.
4133 (MON_ROCKHOPPER): New mips_monitor_type.
4134 (read_hex_value): New function.
4135 (mips_request): Send 8-byte values with a 'T' packet. Read the
4136 packet argument as a string and use read_hex_value to parse it.
4137 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
4138 (rockhopper_open): New function.
4139 (mips_wait): Read the PC, FP and SP fields as strings. Use
4140 read_hex_value to parse them and mips_set_register to commit them.
4141 (mips_set_register): New function.
4142 (mips_fetch_registers): Do not cast register value to "unsigned"
4143 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
4144 (mips_store_registers): Use a 'T' packet to set registers when
4145 using MON_ROCKHOPPER.
4146 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
4147 and expect the total to be printed before the entry address.
4148 (_initialize_remote_mips): Initialize and add rockhopper_ops.
4149
4150 2010-03-08 Kevin Buettner <kevinb@redhat.com>
4151
4152 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
4153 Change return value to int. Store value fetched in location
4154 addressed by `val'. Use function's return value as success
4155 or failure indicator. Adjust all callers.
4156
4157 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
4158
4159 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
4160
4161 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4162 Hui Zhu <teawater@gmail.com>
4163
4164 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
4165 tmp_to_stopped_data_address.
4166 (record_open): Reset tmp_to_stopped_by_watchpoint and
4167 tmp_to_stopped_data_address.
4168 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
4169 to_stopped_data_address.
4170
4171 2010-03-08 Hui Zhu <teawater@gmail.com>
4172
4173 * i386-tdep.c (i386_process_record): Initialize regnum.
4174
4175 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4176
4177 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
4178 Do not warn on ".gnu.liblist" and ".gnu.conflict".
4179
4180 2010-03-08 Joel Brobecker <brobecker@adacore.com>
4181
4182 Memory error when reading wrong core file.
4183 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
4184 errors while reading the inferior memory, and return zero if
4185 an exception was raised.
4186
4187 2010-03-07 Michael Snyder <msnyder@vmware.com>
4188
4189 * record.c (record_restore): Rename tmpu8 to rectype.
4190
4191 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
4192 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
4193
4194 (i386_record_push): Rename local tmpulongest to addr.
4195
4196 (i386_process_record): Rename local tmpulongest to addr.
4197
4198 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
4199 addr64.
4200
4201 Rename local variable tmpu8 to opcode8 and regnum.
4202
4203 2010-03-07 Joel Brobecker <brobecker@adacore.com>
4204
4205 * remote.c (remote_get_ada_task_ptid): New function.
4206 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
4207
4208 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
4209
4210 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
4211 block. Define helper macros to reduce ifdefs in code.
4212 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
4213 size. Call unadorned GetModuleFileNameEx rather than
4214 GetModuleFileNameEx*.
4215 (windows_make_so): Use __PMAX to denote maximum buffer size and
4216 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
4217 appropriate.
4218 (get_image_name): Use __PMAX to denote maximum buffer size.
4219 (handle_load_dll): Likewise.
4220 (windows_pid_to_exec_file): Likewise.
4221 (windows_create_inferior): Add many accommodations for older Cygwin and
4222 non-Cygwin.
4223 (bad_GetModuleFileNameExW): Control inclusion of this function based on
4224 __USEWIDE conditional.
4225 (bad_GetModuleFileNameExA): Likewise.
4226 (_initialize_loadable): Just use real function names without the dyn_
4227 part since they are defined earlier.
4228
4229 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
4230 Tom Tromey <tromey@redhat.com>
4231
4232 * utils.c (host_char_to_target): Add 'gdbarch' argument.
4233 (parse_escape): Likewise.
4234 * python/py-utils.c (unicode_to_target_string): Update.
4235 (unicode_to_target_python_string): Update.
4236 (target_string_to_unicode): Update.
4237 * printcmd.c (printf_command): Update.
4238 * p-exp.y (yylex): Update.
4239 * objc-exp.y (yylex): Update.
4240 * mi/mi-parse.c: Include charset.h.
4241 (mi_parse_escape): New function.
4242 (mi_parse_argv): Use it.
4243 * jv-exp.y (yylex): Update.
4244 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
4245 function.
4246 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
4247 * gdbarch.sh (auto_charset, auto_wide_charset): New.
4248 * gdbarch.c: Rebuild.
4249 * gdbarch.h: Rebuild.
4250 * defs.h (parse_escape): Update.
4251 * cli/cli-setshow.c: Include arch-utils.h.
4252 (do_setshow_command): Update.
4253 * cli/cli-cmds.c (echo_command): Update.
4254 * charset.h (target_charset, target_wide_charset): Update.
4255 * charset.c: Include arch-utils.h.
4256 (target_charset_name): Default to "auto".
4257 (target_wide_charset_name): Likewise.
4258 (show_target_charset_name): Handle "auto".
4259 (show_target_wide_charset_name): Likewise.
4260 (be_le_arch): New global.
4261 (set_be_le_names): Add 'gdbarch' argument.
4262 (validate): Likewise. Don't call set_be_le_names.
4263 (set_charset_sfunc, set_host_charset_sfunc)
4264 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
4265 Update.
4266 (target_charset): Add 'gdbarch' argument.
4267 (target_wide_charset): Likewise. Remove 'byte_order' argument.
4268 (auto_target_charset_name): New global.
4269 (default_auto_charset, default_auto_wide_charset): New functions.
4270 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
4271 for target charsets. Copy result of nl_langinfo. Use GetACP if
4272 USE_WIN32API.
4273 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
4274 remove 'byte_order' argument. Update.
4275 (classify_type): Likewise.
4276 (c_emit_char): Update.
4277 (c_printchar): Update.
4278 (c_printstr): Update.
4279 (c_get_string): Update.
4280 (evaluate_subexp_c): Update.
4281 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
4282 Declare.
4283 * python/python.c (gdbpy_target_charset): New function.
4284 (gdbpy_target_wide_charset): Likewise.
4285 (GdbMethods): Update.
4286 * NEWS: Update.
4287
4288 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
4289
4290 * symfile.c (build_section_addr_info_from_objfile): Do not mask
4291 off high address bits.
4292
4293 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
4294
4295 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
4296 address as UnsignedLongLong, not LongLong.
4297
4298 2010-03-05 Kevin Buettner <kevinb@redhat.com>
4299 Pedro Alves <pedro@codesourcery.com>
4300
4301 * remote-mips.c (gdbthread.h): Include.
4302 (remote_mips_ptid): Declare.
4303 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
4304 (common_open): Set inferior_ptid, add it as an inferior, and
4305 as a thread too. Delete FIXME comment regarding start_remote().
4306 (mips_close): Invoke generic_mourn_inferior().
4307 (mips_kill): Make sure that target_mourn_inferior is invoked.
4308 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
4309 it's now invoked from mips_close().
4310 (mips_load): Don't null out inferior_ptid. Don't call
4311 clear_symtab_users().
4312 (mips_thread_alive, mips_pid_to_str): New functions.
4313 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
4314 to_thread_alive and to_pid_to_str operations.
4315
4316 2010-03-04 Tom Tromey <tromey@redhat.com>
4317
4318 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
4319 in DWARF 3 and later.
4320 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
4321
4322 2010-03-04 Keith Seitz <keiths@redhat.com>
4323
4324 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
4325 If the filename portion of the linespec was quoted, recheck the
4326 remainder for additional quoting.
4327 (locate_first_half): Skip over completer chars, too.
4328
4329 2010-03-04 Tom Tromey <tromey@redhat.com>
4330
4331 * printcmd.c (printf_command): Pass dummy argument to
4332 printf_filtered.
4333
4334 2010-03-04 Doug Evans <dje@google.com>
4335
4336 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
4337 unwound_fp.
4338
4339 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
4340
4341 2010-03-04 Pedro Alves <pedro@codesourcery.com>
4342
4343 * breakpoint.c (update_watchpoint): Create a sentinel location if
4344 the software watchpoint isn't watching any memory.
4345 (breakpoint_address_bits): Skip dummy software watchpoint locations.
4346
4347 2010-03-04 Pedro Alves <pedro@codesourcery.com>
4348
4349 * utils.c (fputs_maybe_filtered): Check if there's already a top
4350 level interpreter before dereferencing it. If there isn't one,
4351 don't paginate either.
4352
4353 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4354
4355 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
4356 the state right when single stepping.
4357 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
4358 Get the next PC along with the instruction state.
4359 (thumb_get_next_pc): Remove.
4360 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
4361
4362 2010-03-04 Hui Zhu <teawater@gmail.com>
4363
4364 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
4365
4366 2010-03-03 Pedro Alves <pedro@codesourcery.com>
4367
4368 * utils.c (fputs_maybe_filtered): Always disable pagination if the
4369 top level interpreter is MI.
4370
4371 2010-03-03 Stan Shebs <stan@codesourcery.com>
4372
4373 * remote.c (remote_download_tracepoint): Iterate over locations.
4374 * tracepoint.c (validate_actionline): Ditto.
4375 (encode_actions): Add location argument.
4376 (trace_dump_command): Check all locations to see if stepping
4377 frame.
4378
4379 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
4380 Eli Zaretskii <eliz@gnu.org>
4381
4382 * NEWS: Add X86 general purpose registers section.
4383
4384 2010-03-03 Tom Tromey <tromey@redhat.com>
4385
4386 PR mi/11098:
4387 * varobj.c (install_new_value): Handle case where new print_value
4388 is NULL.
4389
4390 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
4391
4392 PR gdb/11345:
4393 * printcmd.c (printf_command): Print end of format string using
4394 printf_filtered.
4395
4396 2010-03-02 Tom Tromey <tromey@redhat.com>
4397
4398 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
4399 * defs.h (read_command_lines_1): Add missing 'void'.
4400 * cli/cli-script.c (recurse_read_control_structure): Add missing
4401 'void'.
4402 (read_next_line): Likewise.
4403 (read_command_lines_1): Likewise.
4404
4405 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
4406
4407 * spu-tdep.c (spu_analyze_prologue): Track instruction to
4408 store backchain as part of prologue.
4409
4410 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
4411
4412 * progspace.c (update_address_spaces): Update inferior address spaces
4413 also.
4414
4415 2010-03-02 Doug Evans <dje@google.com>
4416
4417 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
4418 lowpc,highpc args to addrmap_set_empty.
4419
4420 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
4421
4422 * amd64-tdep.c (amd64_byte_names): New.
4423 (amd64_word_names): Likewise.
4424 (amd64_dword_names): Likewise.
4425 (amd64_pseudo_register_name): Likewise.
4426 (amd64_pseudo_register_read): Likewise.
4427 (amd64_pseudo_register_write): Likewise.
4428 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
4429 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
4430 set_gdbarch_pseudo_register_write and
4431 set_tdesc_pseudo_register_name. Don't call
4432 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
4433
4434 * i386-tdep.c (i386_num_mmx_regs): Removed.
4435 (i386_num_pseudo_regs): Likewise.
4436 (i386_byte_names): New.
4437 (i386_word_names): Likewise.
4438 (i386_byte_regnum_p): Likewise.
4439 (i386_word_regnum_p): Likewise.
4440 (i386_mmx_regnum_p): Updated.
4441 (i386_pseudo_register_name): Make it global. Handle byte and
4442 word pseudo-registers.
4443 (i386_pseudo_register_read): Likewise.
4444 (i386_pseudo_register_write): Likewise.
4445 (i386_pseudo_register_type): Handle byte, word and dword
4446 pseudo-registers
4447 (i386_register_reggroup_p): Don't include pseudo
4448 registers, except for MXX, in any register groups. Don't
4449 include pseudo byte, word, dword registers in general_reggroup.
4450 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
4451 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
4452 pseudo-registers after word pseudo-registers. Call
4453 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
4454
4455 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
4456 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
4457 eax_regnum.
4458 (i386_byte_regnum_p): New.
4459 (i386_word_regnum_p): Likewise.
4460 (i386_dword_regnum_p): Likewise.
4461 (i386_pseudo_register_name): Likewise.
4462 (i386_pseudo_register_read): Likewise.
4463 (i386_pseudo_register_write): Likewise.
4464
4465 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
4466
4467 * target-descriptions.c (tdesc_type): Remove
4468 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
4469 (tdesc_predefined_types): Likewise.
4470 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
4471 if flag name is empty.
4472 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
4473
4474 * features/i386/32bit-core.xml: Define i386_eflags.
4475 * features/i386/64bit-core.xml: Likewise.
4476
4477 * features/i386/32bit-sse.xml: Define i386_mxcsr.
4478 * features/i386/64bit-sse.xml: Likewise.
4479
4480 * features/i386/amd64-linux.c: Regenerated.
4481 * features/i386/amd64.c: Likewise.
4482 * features/i386/i386-linux.c: Likewise.
4483 * features/i386/i386.c: Likewise.
4484
4485 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
4486
4487 * gdbtypes.c (append_composite_type_field_raw): New.
4488 (append_composite_type_field_aligned): Use the new function.
4489 * gdbtypes.h (append_composite_type_field_raw): Declare.
4490 * target-descriptions.c (struct tdesc_type_field): Add start and end.
4491 (struct tdesc_type_flag): New type.
4492 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
4493 kind. Add size to u.u. Add u.f for flags.
4494 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
4495 (tdesc_free_type): Likewise.
4496 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
4497 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
4498 (tdesc_add_bitfield, tdesc_add_flag): New.
4499 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
4500 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
4501 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
4502 current_type. Add current_type_size and current_type_is_flags.
4503 (tdesc_start_union): Clear the new fields.
4504 (tdesc_start_struct, tdesc_start_flags): New.
4505 (tdesc_start_field): Handle struct fields, including bitfields.
4506 (field_attributes): Make type optional. Add start and end.
4507 (union_children): Rename to struct_union_children.
4508 (union_attributes): Rename to struct_union_attributes. Add optional
4509 size.
4510 (flags_attributes): New.
4511 (feature_children): Add struct and flags.
4512 * features/gdb-target.dtd: Add flags and struct to features.
4513 Make field type optional. Add field start and end.
4514
4515 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
4516
4517 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
4518 (amd64_linux_read_description): Likewise.
4519 (_initialize_amd64_linux_nat): Set to_read_description to
4520 amd64_linux_read_description.
4521
4522 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
4523 (amd64_linux_register_name): Removed.
4524 (amd64_linux_register_type): Likewise.
4525 (amd64_linux_core_read_description): New.
4526 (amd64_linux_init_abi): Set target description to
4527 tdesc_amd64_linux if needed. Support orig_rax in target
4528 description. Don't call set_gdbarch_register_name nor
4529 set_gdbarch_register_type. Call
4530 set_gdbarch_core_read_description.
4531 (_initialize_amd64_linux_tdep): Call
4532 initialize_tdesc_amd64_linux.
4533
4534 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
4535
4536 * amd64-tdep.c: Include "features/i386/amd64.c".
4537 (amd64_register_names): Removed.
4538 (amd64_register_name): Likewise.
4539 (amd64_register_type): Likewise.
4540 (amd64_init_abi): Set num_core_regs and register_names. Set
4541 target description to tdesc_amd64 if needed. Don't call
4542 set_gdbarch_register_name nor set_gdbarch_register_type.
4543 (_initialize_amd64_tdep): New.
4544
4545 * i386-linux-nat.c (i386_linux_read_description): New.
4546 (_initialize_i386_linux_nat): Set to_read_description to
4547 i386_linux_read_description.
4548
4549 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
4550 (i386_linux_register_name): Removed.
4551 (i386_linux_core_read_description): New.
4552 (i386_linux_read_description): Likewise.
4553 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
4554 Set target description to tdesc_i386_linux if needed. Support
4555 orig_eax. Set register_reggroup_p. Call
4556 set_gdbarch_core_read_description.
4557 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
4558
4559 * i386-linux-tdep.h (tdesc_i386_linux): New.
4560
4561 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
4562 with I387_NUM_REGS.
4563
4564 * i386-tdep.c: Include "features/i386/i386.c".
4565 (i386_register_names): Make it const.
4566 (i386_mmx_names): Likewise.
4567 (i386_num_register_names): Removed.
4568 (i386_register_name): Likewise.
4569 (i386_eflags_type): Likewise.
4570 (i386_mxcsr_type): Likewise.
4571 (i386_sse_type): Likewise.
4572 (i386_register_type): Likewise.
4573 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
4574 (i386_pseudo_register_name): New.
4575 (i386_pseudo_register_type): Likewise.
4576 (i386_mmx_type): Make it static.
4577 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
4578 I387_NUM_REGS. Set num_core_regs and register_names. Don't
4579 call set_gdbarch_register_name nor set_gdbarch_register_type.
4580 Set register_reggroup_p. Set target description to tdesc_i386
4581 if needed. Call set_tdesc_pseudo_register_type,
4582 set_tdesc_pseudo_register_name and tdesc_use_registers.
4583 (_initialize_i386_tdep): Call initialize_tdesc_i386.
4584 initialize_tdesc_x86_64.
4585
4586 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
4587 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
4588 register_names, tdesc and register_reggroup_p.
4589 (I386_NUM_FREGS): Removed.
4590 (i386_eflags_type): Likewise.
4591 (i386_mxcsr_type): Likewise.
4592 (i386_mmx_type): Likewise.
4593 (i386_sse_type): Likewise.
4594 (i386_register_name): Likewise.
4595 (i386_regnum): Add I386_MXCSR_REGNUM.
4596 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
4597
4598 * i387-tdep.h (I387_NUM_REGS): New.
4599
4600 * regformats/i386/i386-linux.dat: Generated.
4601 * regformats/i386/i386.dat: Likewise.
4602 * regformats/i386/amd64-linux.dat: Likewise.
4603 * regformats/i386/amd64.dat: Likewise.
4604
4605 * regformats/reg-i386-linux.dat: Removed.
4606 * regformats/reg-i386.dat: Likewise.
4607 * regformats/reg-x86-64-linux.dat: Likewise.
4608 * regformats/reg-x86-64.dat: Likewise.
4609
4610 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
4611
4612 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
4613 cygwin_conv_path API rather than the deprecated
4614 cygwin_conv_to_full_posix_path.
4615 * windows-nat.c:
4616 (GetModuleFileNameExA): Undefine for Cygwin.
4617 (GetModuleFileNameExW): Define for Cygwin.
4618 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
4619 Call GetModuleFileNameExW and convert path to POSIX using
4620 cygwin_conv_path.
4621 (windows_make_so): Always define p. Drop unused variable m.
4622 Don't use Win32 functions to check file existance, rather use
4623 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
4624 Use canonicalize_file_name to get full path.
4625 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
4626 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
4627 use correct target buffer size in call to WideCharToMultiByte.
4628 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
4629 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
4630 (windows_create_inferior): Convert all paths and arguments to wchar_t
4631 and use CreateProcessW on Cygwin.
4632 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
4633 (bad_GetModuleFileNameExA): Undefine for Cygwin.
4634 (bad_GetModuleFileNameExW): Define for Cygwin.
4635 (_initialize_loadable): Load GetModuleFileNameExW into
4636 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
4637
4638 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
4639
4640 PR python/11036
4641 * python/py-frame.c (frapy_read_var): Add block argument and logic
4642 to cope with user provided blocks.
4643
4644 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4645
4646 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
4647 New comment.
4648
4649 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
4650
4651 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
4652 (COMMON_OBS): ... to here since it's used unconditionally.
4653 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
4654 (SFILES): To here.
4655
4656 2010-02-26 David Daney <ddaney@caviumnetworks.com>
4657
4658 * mips-linux-tdep.c: Update struct sigframe comments.
4659 (SIGFRAME_CODE_OFFSET): Delete macro.
4660 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
4661 this_frame's sp.
4662 (mips_linux_n32n64_sigframe_init): Same.
4663
4664 2010-02-26 Kevin Buettner <kevinb@redhat.com>
4665
4666 * remote-mips.c (mips_load): Don't use pseudo-register when
4667 invalidating regcache.
4668
4669 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4670
4671 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
4672
4673 2010-02-26 Pedro Alves <pedro@codesourcery.com>
4674
4675 * NEWS: Add "New targets" section, and mention ARM Symbian
4676 support.
4677
4678 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
4679
4680 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
4681 add ADDR_SIZE member.
4682 (allocate_piece_closure): Update.
4683 (copy_pieced_value_closure): Likewise.
4684 (dwarf2_evaluate_loc_desc): Likewise.
4685 (read_pieced_value): Use DWARF address size instead of
4686 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
4687
4688 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
4689 Tom Tromey <tromey@redhat.com>
4690
4691 * python/py-type.c (typy_lookup_typename): Add in block argument.
4692 If provided restrict lookup to specified blocks.
4693 (gdbpy_lookup_type): Likewise.
4694 (typy_lookup_type): Likewise.
4695
4696 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
4697
4698 Symbian config
4699
4700 gdb/
4701 * arm-symbian-tdep.c: New.
4702 * configure.tgt (arm*-*-symbianelf*): New target.
4703 (*-*-symbianelf*): New OS.
4704 * osabi.c (gdb_osabi_names): Add Symbian.
4705 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
4706 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
4707 (ALLDEPFILES): Add arm-symbian-tdep.c.
4708
4709 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
4710
4711 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
4712
4713 2010-02-24 Pedro Alves <pedro@codesourcery.com>
4714
4715 * mi/mi-main.c (mi_cmd_execute): Fix typo.
4716
4717 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
4718 Tom Tromey <tromey@redhat.com>
4719 Thiago Jung Bauermann <bauerman@br.ibm.com>
4720
4721 * python/python.c (_initialize_python): Call
4722 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
4723 gdbpy_initialize_blocks.
4724 * python/python-internal.h: Declare struct symbol, block and
4725 symtab_and_line. Declare block_object_type and
4726 symbol_object_type
4727 (gdbpy_lookup_symbol gdbpy_block_for_pc)
4728 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
4729 (symbol_to_symbol_object, block_to_block_object)
4730 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
4731 (gdbpy_initialize_blocks ): Declare.
4732 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
4733 (frapy_select): Add methods.
4734 (frapy_read_var): Add symbol branch.
4735 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
4736 py-block.
4737 (SUBDIR_PYTHON_SRCS): Likewise.
4738 (py-symbol.o): New rule.
4739 (py-symtab.o): Likewise.
4740 (py-block.o): Likewise.
4741 * python/py-symbol.c: New file.
4742 * python/py-symtab.c: Likewise.
4743 * python/py-block.c: Likewise.
4744
4745 2010-02-24 Pedro Alves <pedro@codesourcery.com>
4746
4747 PR gdb/11321
4748
4749 * inferior.h (prepare_for_detach): Declare.
4750 (struct inferior) <detaching>: New field.
4751 * infrun.c (prepare_for_detach): New.
4752 (handle_inferior_event) <random signal>: Don't stop if detaching.
4753 * target.c (target_detach): Call prepare_for_detach.
4754
4755 2010-02-24 Pedro Alves <pedro@codesourcery.com>
4756
4757 Per-process displaced stepping queue.
4758
4759 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
4760 (displaced_step_gdbarch, displaced_step_closure,
4761 (displaced_step_original, displaced_step_copy): Move globals to
4762 this...
4763 (struct displaced_step_inferior_state): ... new structure.
4764 (displaced_step_inferior_states): New global.
4765 (get_displaced_stepping_state, add_displaced_stepping_state)
4766 (remove_displaced_stepping_state, infrun_inferior_exit): New
4767 functions.
4768 (displaced_step_clear): Add displaced_step_inferior_state
4769 parameter, and adjust to handle it.
4770 (displaced_step_clear_cleanup): Parameter is now a
4771 displaced_step_inferior_state. Adjust.
4772 (displaced_step_prepare): Adjust.
4773 (displaced_step_fixup, displaced_step_fixup)
4774 (infrun_thread_ptid_changed, resume): Adjust.
4775 (init_wait_for_inferior): Don't call displaced_step_clear.
4776 (infrun_thread_stop_requested): Rewrite.
4777 (_initialize_infrun): Install infrun_inferior_exit as
4778 inferior_exit observer.
4779
4780 2010-02-24 Pedro Alves <pedro@codesourcery.com>
4781
4782 * inferior.h (ptid_match): Declare.
4783 * infrun.c (ptid_match): New.
4784 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
4785 (handle_notification): Add debug output.
4786 * linux-nat.c (ptid_match): Delete.
4787
4788 2010-02-24 David S. Miller <davem@davemloft.net>
4789
4790 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
4791 * syscalls/sparc-linux.xml: New.
4792 * syscalls/sparc64-linux.xml: New.
4793 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
4794 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
4795 (sparc32_linux_get_syscall_number): New function.
4796 (sparc32_linux_init_abi): Set syscall XML file name and hook up
4797 syscall number fetcher.
4798 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
4799 (sparc64_linux_get_syscall_number): New function.
4800 (sparc64_linux_init_abi): Set syscall XML file name and hook up
4801 syscall number fetcher.
4802
4803 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
4804
4805 Multiexec MI
4806
4807 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
4808 * inferior.c (add_inferior_silent): Notify inferior_added
4809 observer.
4810 (delete_inferior_1): Notify inferior_removed observer.
4811 (exit_inferior_1): Pass inferior, not pid, to observer.
4812 (inferior_appeared): Likewise.
4813 (add_inferior_with_spaces): New.
4814 (add_inferior_command): Use the above.
4815 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
4816 Declare.
4817
4818 * inflow.c (inflow_inferior_exit): Likewise.
4819 * jit.c (jit_inferior_exit_hook): Likewise.
4820
4821 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
4822 remove-inferior.
4823 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
4824 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
4825 (report_initial_inferior): New.
4826 (mi_inferior_removed): Register the above. Make sure
4827 inferior_added observer is called on the first inferior.
4828 (mi_new_thread, mi_thread_exit): Thread group is now identified by
4829 inferior number, not pid.
4830 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
4831 affected.
4832 * mi/mi-main.c (current_context): New.
4833 (proceed_thread_callback): Use typed closure.
4834 Proceed everything if pid is 0. Most implementation split into
4835 (proceed_thread): ... this.
4836 (run_one_inferior): New.
4837 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
4838 Adjust for multiexec behaviour.
4839 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
4840 (mi_cmd_execute): Handle the 'thread-group' option here.
4841 Do some extra checks.
4842 * mi-parse.c (mi_parse): Handle the --all and --thread-group
4843 options.
4844 * mi-parse.h (struct mi_parse): New fields all and thread_group.
4845
4846 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
4847
4848 Make -exec-run a proper MI commands.
4849
4850 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
4851 * mi/mi-cmds.c (mi_cmds): Adjust.
4852 * mi/mi-main.c (mi_cmd_exec_run): New.
4853
4854 2010-02-24 Pedro Alves <pedro@codesourcery.com>
4855 Stan Shebs <stan@codesourcery.com>
4856
4857 * tracepoint.h (set_traceframe_number)
4858 (cleanup_restore_current_traceframe): Declare.
4859 * tracepoint.c (set_traceframe_number): New.
4860 (struct current_traceframe_cleanup): New.
4861 (do_restore_current_traceframe_cleanup)
4862 (restore_current_traceframe_cleanup_dtor)
4863 (make_cleanup_restore_current_traceframe): New.
4864 * infrun.c: Include tracepoint.h.
4865 (fetch_inferior_event): Switch out and in of tfind mode.
4866
4867 2010-02-24 Pedro Alves <pedro@codesourcery.com>
4868
4869 * breakpoint.c (breakpoint_init_inferior): Also delete
4870 bp_shlib_event breakpoints.
4871 * solib-frv.c (enable_break): Remove call to
4872 remove_solib_event_breakpoints.
4873 * solib-svr4.c (enable_break): Ditto.
4874 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
4875 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
4876 * solib-som.c (som_solib_create_inferior_hook): Ditto.
4877 * solib-spu.c (spu_enable_break): Ditto.
4878
4879 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
4880
4881 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
4882
4883 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
4884
4885 * varobj.c (varobj_update): Avoid non-constants in initializers.
4886
4887 2010-02-23 Tom Tromey <tromey@redhat.com>
4888
4889 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
4890 handle big-endian values.
4891 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
4892
4893 2010-02-22 Pedro Alves <pedro@codesourcery.com>
4894
4895 PR9605
4896
4897 gdb/
4898 * breakpoint.c (insert_bp_location): If inserting the read
4899 watchpoint failed, fallback to an access watchpoint.
4900 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
4901 if the value changed, if not watching the same memory for writes.
4902 (watchpoint_locations_match): Add comment.
4903 (update_global_location_list): Copy the location's watchpoint type.
4904 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
4905 handle read watchpoints here.
4906 (i386_insert_watchpoint): Read watchpoints aren't supported.
4907 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
4908 packets.
4909 * target.h (target_insert_watchpoint): Update description.
4910
4911 2010-02-19 Tom Tromey <tromey@redhat.com>
4912
4913 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
4914 * m2-typeprint.c (m2_print_type): Update.
4915 * gdbtypes.c (recursive_dump_type): Update.
4916 (copy_type_recursive): Update.
4917 * c-typeprint.c (c_type_print_varspec_prefix): Update.
4918 (c_type_print_base): Update.
4919 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
4920 Remove.
4921 (struct cplus_struct_type) <ntemplate_args>: Remove.
4922 <struct template_arg>: Remove.
4923 <is_dynamic>: Move earlier.
4924 (TYPE_TEMPLATE_ARGS): Remove.
4925 (TYPE_NTEMPLATE_ARGS): Remove.
4926 (TYPE_TEMPLATE_ARG): Remove.
4927
4928 2010-02-19 Tom Tromey <tromey@redhat.com>
4929
4930 PR c++/8693, PR c++/9496:
4931 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
4932 * c-exp.y (lex_one_token): Rename from yylex. Don't call
4933 write_dollar_variable. Don't try to classify NAME tokens.
4934 (token_and_value): New type.
4935 (token_fifo, popping, name_obstack): New globals.
4936 (classify_name): New function.
4937 (classify_inner_name): Likewise.
4938 (yylex): Likewise.
4939 (VARIABLE): Now has type sval.
4940 (exp : VARIABLE): Call write_dollar_variable.
4941 (qualified_name): Use TYPENAME, not typebase. Add production for
4942 multiple "::" instances.
4943 (variable): Use name_not_typename.
4944 (qualified_type): Remove.
4945 (typebase): Update.
4946
4947 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4948
4949 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
4950 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
4951 found by bfd_get_section_by_name.
4952 * symfile.h (struct section_addr_info) <sectindex>: New comment.
4953
4954 2010-02-19 Joel Brobecker <brobecker@adacore.com>
4955
4956 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
4957 7.0 section" into "Changes in 7.1".
4958
4959 2010-02-19 Joel Brobecker <brobecker@adacore.com>
4960
4961 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
4962 * version.in: Bump version to 7.1.50.20100219-cvs.
4963
4964 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
4965
4966 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
4967 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
4968
4969 2010-02-17 Tom Tromey <tromey@redhat.com>
4970
4971 * NEWS: Add Python API Improvements section.
4972
4973 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
4974
4975 * NEWS: Correct typo.
4976
4977 2010-02-17 Tom Tromey <tromey@redhat.com>
4978
4979 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
4980
4981 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4982
4983 * symfile.c (build_section_addr_info_from_objfile): Include sections
4984 only if they are SEC_ALLOC or SEC_LOAD.
4985
4986 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
4987
4988 PR shlibs/11293
4989 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
4990 of ULONGEST for address size.
4991
4992 2010-02-17 Tom Tromey <tromey@redhat.com>
4993
4994 * NEWS: Add C++ improvements section.
4995
4996 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
4997
4998 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
4999 PyThreadState_Swap): Avoid "statement with no effect" warning.
5000
5001 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5002
5003 * solib-svr4.c (enable_break <target_auxv_search>): New variable
5004 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
5005
5006 2010-02-17 Tristan Gingold <gingold@adacore.com>
5007 Petr Hluzin <petr.hluzin@gmail.com>
5008
5009 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
5010 gdb_assert. Fix info->size for SIG prologue.
5011
5012 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5013
5014 * infcmd.c (show_inferior_tty_command): Check for NULL.
5015 Correct output message.
5016
5017 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5018
5019 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
5020 FUNCTION contains parentheses. Improve removal of a trailing
5021 single quote.
5022
5023 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5024
5025 * gcore.c (do_bfd_delete_cleanup): New function.
5026 (gcore_command): Use it. Discard the cleanup after success.
5027 (gcore_copy_callback): Delete dead code.
5028
5029 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5030
5031 * symfile.c (addr_info_make_relative): Always use
5032 find_lowest_section.
5033
5034 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
5035
5036 * NEWS: Added entry for namespace fixes.
5037
5038 2010-02-15 Tom Tromey <tromey@redhat.com>
5039
5040 * dwarf2read.c (guess_structure_name): Allocate name on the
5041 objfile obstack.
5042
5043 2010-02-15 Tom Tromey <tromey@redhat.com>
5044
5045 * c-typeprint.c (c_type_print_base): Reverse order of test.
5046
5047 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5048
5049 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
5050 initialize it from ELF BFD. Extend the prelink condition by it.
5051
5052 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5053
5054 * defs.h (parse_pid_to_attach): New.
5055 * utils.c (parse_pid_to_attach): New.
5056 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
5057 * gnu-nat.c (gnu_attach): Likewise.
5058 * nto-procfs.c (procfs_attach): Likewise.
5059 * procfs.c (procfs_attach): Likewise.
5060 * windows-nat.c (windows_attach): Likewise.
5061 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
5062 * inf-ttrace.c (inf_ttrace_attach): Likewise.
5063 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
5064 check.
5065
5066 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
5067
5068 * MAINTAINERS: Add myself for write after approval privileges.
5069
5070 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5071
5072 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
5073 block.
5074
5075 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5076
5077 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
5078 only if INFO_VERBOSE.
5079
5080 2010-02-12 Tomas Holmberg <th@virtutech.com>
5081
5082 * mi/mi-main.c: Added the --reverse flag to the following MI
5083 commands: exec-continue, exec-finish, exec-next, exec-step,
5084 exec-next-instruction, exec-step-instruction. This is to
5085 support reverse execution over the MI interface to gdb.
5086
5087 2010-02-12 Pedro Alves <pedro@codesourcery.com>
5088
5089 * tracepoint.c (_initialize_tracepoint): Specify that the address
5090 range of `tfind outsize' is exclusive, and that the address range
5091 of `tfind range' is inclusive, in the commands' help strings.
5092
5093 2010-02-12 Joel Brobecker <brobecker@adacore.com>
5094
5095 Spurious "dll not found" error messages on x64-windows.
5096 * windows-nat.c: Add include of complaints.h.
5097 (handle_unload_dll): Change dll-not-found error into a complaint.
5098
5099 2010-02-12 Pedro Alves <pedro@codesourcery.com>
5100
5101 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
5102 bp_tracepoint and bp_fast_tracepoint, not
5103 bp_loc_software_breakpoint.
5104 (update_global_location_list): Tracepoints are never duplicates of
5105 anything.
5106
5107 2010-02-12 Pedro Alves <pedro@codesourcery.com>
5108
5109 * breakpoint.c (break_command_really): Change return type to int.
5110 Return false if no breakpoint was created, true otherwise.
5111 (trace_command): Don't set the tracepoint count if no tracepoint
5112 was created.
5113 (ftrace_command): Ditto.
5114 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
5115 created in the breakpoints table.
5116
5117 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5118 Ulrich Weigand <uweigand@de.ibm.com>
5119
5120 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
5121
5122 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5123
5124 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
5125 the offset value isn't of integral type.
5126
5127 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5128
5129 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
5130 New.
5131
5132 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5133
5134 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
5135 non-subscriptable types.
5136 * valarith.c (binop_types_user_defined_p): New, abstracted out
5137 from ...
5138 (binop_user_defined_p): ... this.
5139 * value.h (binop_types_user_defined_p): Declare.
5140
5141 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5142
5143 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
5144 Merge uploaded TSVs before merging uploaded tracepoints.
5145
5146 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5147
5148 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
5149
5150 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
5151
5152 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
5153 whitespace character after a dot in comment.
5154 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
5155 Likewise.
5156 (list_args_or_locals): For the 'all' (that is
5157 -stack-list-variables) case, always output list of tuples.
5158 Output 'arg' field if variable is argument.
5159
5160 2010-02-10 Tom Tromey <tromey@redhat.com>
5161
5162 * parser-defs.h (parser_debug): Declare.
5163 * parse.c (_initialize_parse): Install "debug parser" set/show
5164 command.
5165 (parser_debug): New global.
5166 (show_parserdebug): New function.
5167 * c-exp.y (c_parse): Set yydebug.
5168
5169 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
5170
5171 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
5172 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5173 (tdesc_predefined_types): Add i387_ext, i386_eflags and
5174 i386_mxcsr.
5175 (tdesc_find_type): New.
5176 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
5177 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5178
5179 * target-descriptions.h (tdesc_find_type): New.
5180
5181 2010-02-10 Michael Snyder <msnyder@vmware.com>
5182
5183 * gdb-gdb.py: Comment fix.
5184
5185 2010-02-09 Tristan Gingold <gingold@adacore.com>
5186
5187 * machoread.c (macho_symfile_relocate): New function.
5188 (macho_sym_fns): Use macho_symfile_relocate instead of
5189 default_symfile_relocate.
5190 (macho_oso_data): New type.
5191 (current_oso): New variable.
5192 (macho_add_oso_symfile): Do not compute section_addr_info, but
5193 instead set vma of sections.
5194 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
5195 Set and clear current_oso.
5196
5197 2010-02-09 Joel Brobecker <brobecker@adacore.com>
5198
5199 Wrong type description for tagged type parameter.
5200 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
5201 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
5202 reference to a tagged type.
5203
5204 2010-02-09 Tristan Gingold <gingold@adacore.com>
5205
5206 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
5207 brothers of the parent.
5208
5209 2010-02-08 Tom Tromey <tromey@redhat.com>
5210
5211 PR c++/8017:
5212 * value.h: Update.
5213 * valops.c (search_struct_field): Make 'name' const.
5214 (search_struct_method): Likewise.
5215 (find_method_list): Make 'method' const.
5216 (value_struct_elt): Make 'name' and 'err' const.
5217 (value_find_oload_method_list): Make 'method' const.
5218 (find_overload_match): Make 'name' const.
5219 * eval.c (evaluate_subexp_standard): New locals function,
5220 function_name.
5221 <OP_FUNCALL>: Handle OP_SCOPE specially.
5222
5223 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5224
5225 * infrun.c (handle_inferior_event): Do not look up regcache
5226 for exited processes.
5227
5228 2010-02-08 Chris Moller <moller@mollerware.com>
5229
5230 PR gdb/10728
5231 * valarith.c (value_ptrdiff): Added a test for a zero type length,
5232 warn if found, and assume length = 1.
5233
5234 2010-02-08 Chris Moller <cmoller@redhat.com>
5235
5236 PR gdb/9067
5237 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
5238 cp_print_static_field) Fix use of obstacks.
5239
5240 2010-02-08 Pedro Alves <pedro@codesourcery.com>
5241
5242 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
5243 resumed LWPs as resumed.
5244 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
5245 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
5246 of throwing an internal error. If an LWP of a process we're not
5247 waiting for reports a signal, don't force collecting a SIGSTOP,
5248 and if it was breakpoint hit in non-stop mode, cancel it. Don't
5249 go through all LWPs cancelling breakpoints in non-stop mode.
5250 (resume_stopped_resumed_lwps): New.
5251 (linux_nat_wait): Use it.
5252
5253 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
5254
5255 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
5256 i386/amd64 and i386/amd64-linux.
5257 (i386/i386-expedite): New.
5258 (i386/i386-linux-expedite): Likewise.
5259 (i386/amd64-expedite):Likewise.
5260 (i386/amd64-linux-expedite): Likewise.
5261 ($(outdir)/i386/i386-linux.dat): Likewise.
5262 ($(outdir)/i386/amd64.dat): Likewise.
5263 ($(outdir)/i386/amd64-linux.dat): Likewise.
5264
5265 * features/i386/32bit-core.xml: New.
5266 * features/i386/32bit-linux.xml: Likewise.
5267 * features/i386/32bit-sse.xml: Likewise.
5268 * features/i386/64bit-core.xml: Likewise.
5269 * features/i386/64bit-linux.xml: Likewise.
5270 * features/i386/64bit-sse.xml: Likewise.
5271 * features/i386/i386-linux.xml: Likewise.
5272 * features/i386/i386.xml: Likewise.
5273 * features/i386/amd64-linux.xml: Likewise.
5274 * features/i386/amd64.xml: Likewise.
5275 * features/i386/i386-linux.c: Likewise.
5276 * features/i386/i386.c: Likewise.
5277 * features/i386/amd64-linux.c: Likewise.
5278 * features/i386/amd64.c: Likewise.
5279
5280 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
5281
5282 PR c++/7935:
5283 * cp-support.h: Added char* alias element to using_direct data
5284 struct.
5285 (cp_add_using): Added char* alias argument.
5286 (cp_add_using_directive): Ditto.
5287 * cp-namespace.c: Updated with the above changes.
5288 (cp_lookup_symbol_imports): Check for aliases.
5289 * dwarf2read.c (read_import_statement): Figure out local alias
5290 for the import and pass it on to cp_add_using.
5291 (read_namespace): Pass alias argument to cp_add_using.
5292
5293 2010-02-05 Hui Zhu <teawater@gmail.com>
5294
5295 * defs.h (gdb_bfd_errmsg): New extern.
5296 * exec.c (exec_file_attach): Change bfd_errmsg to
5297 gdb_bfd_errmsg.
5298 * utils.c (AMBIGUOUS_MESS1): New macro.
5299 (AMBIGUOUS_MESS2): New macro.
5300 (gdb_bfd_errmsg): New function.
5301
5302 2010-02-04 Doug Evans <dje@google.com>
5303
5304 * solib-svr4.c (enable_break): Add comment.
5305
5306 2010-02-04 Anthony Green <green@moxielogic.com>
5307
5308 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
5309 gracefully.
5310
5311 2010-02-04 Tom Tromey <tromey@redhat.com>
5312
5313 * valops.c (search_struct_field): Account for
5314 value_embedded_offset. Fix check for virtual base past the end of
5315 the object. Use value_copy when making a slice of the value.
5316
5317 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
5318
5319 PR tui/9622
5320 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
5321 only if gdb_stdout is a tty.
5322
5323 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
5324
5325 * target-descriptions.c: Include "osabi.h".
5326 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
5327 OSABI.
5328
5329 2010-02-04 Tristan Gingold <gingold@adacore.com>
5330
5331 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
5332 (macho_symtab_read): Adjust calls to macho_add_oso.
5333 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
5334 (macho_symfile_read): Adjust call to macho_oso_symfile.
5335 (macho_new_init): Move this function after declarations.
5336 (macho_symfile_init): Ditto.
5337 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
5338 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
5339
5340 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
5341
5342 Include MI command in remotelog.
5343
5344 * mi/mi-main.c (mi_execute_command): Call target_log_command.
5345
5346 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
5347
5348 * remote.c (remote_state): Remove gdbarch.
5349 (init_remote_state): Don't set gdbarch.
5350 (remote_query_supported): Pass target_gdbarch instead of
5351 rs->gdbarch to gdbarch_qsupported.
5352
5353 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
5354
5355 * gdbarch.sh: Add qsupported.
5356
5357 * gdbarch.c: Regenerated.
5358 * gdbarch.h: Likewise.
5359
5360 * remote.c (remote_state): Add gdbarch.
5361 (init_remote_state): Set gdbarch.
5362 (remote_query_supported): Support gdbarch_qsupported.
5363
5364 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
5365
5366 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
5367 __FreeBSD_kernel_version.
5368
5369 2010-02-03 Tristan Gingold <gingold@adacore.com>
5370
5371 * symfile.h (struct sym_fns): Add sym_relocate field.
5372 (default_symfile_relocate): New prototype.
5373 (symfile_relocate_debug_section): First argument is now an objfile.
5374 * symfile.c (default_symfile_relocate): Rename from
5375 symfile_relocate_debug_section, first argument is now an objfile.
5376 (symfile_relocate_debug_section): New function.
5377 * coffread.c (coff_sym_fns): Set sym_relocate field.
5378 * somread.c (som_sym_fns): Ditto.
5379 * mipsread.c (ecoff_sym_fns): Ditto.
5380 * machoread.c (macho_sym_fns): Ditto.
5381 * elfread.c (elf_sym_fns): Ditto.
5382 * dwarf2read.c (dwarf2_read_section): Ditto.
5383 * xcoffread.c (xcoff_sym_fns): Ditto.
5384 * dbxread.c (aout_sym_fns): Ditto.
5385 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
5386 (elfstab_build_psymtabs): Ditto.
5387
5388 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
5389
5390 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
5391
5392 2010-02-02 Tom Tromey <tromey@redhat.com>
5393
5394 * valops.c (value_cast_structs): Try downcasting using the RTTI
5395 type.
5396
5397 2010-02-02 Tom Tromey <tromey@redhat.com>
5398
5399 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
5400 (gnuv2_baseclass_offset): Now static.
5401 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
5402 * gnu-v2-abi.h: Remove.
5403
5404 2010-02-02 Tom Tromey <tromey@redhat.com>
5405
5406 * m2-typeprint.c (m2_record_fields): Don't use
5407 TYPE_DECLARED_TYPE.
5408 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
5409 (struct main_type) <flag_declared_class>: New field.
5410 (struct cplus_struct_type) <declared_type>: Remove.
5411 <ntemplate_args>: Move earlier.
5412 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
5413 (DECLARED_TYPE_TEMPLATE): Remove.
5414 (TYPE_DECLARED_TYPE): Remove.
5415 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
5416 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
5417 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
5418 TYPE_DECLARED_TYPE.
5419
5420 2010-02-02 Tom Tromey <tromey@redhat.com>
5421
5422 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
5423 * valops.c (search_struct_field): Compute nbases after calling
5424 CHECK_TYPEDEF.
5425 (check_field): Call CHECK_TYPEDEF.
5426 * cp-valprint.c (cp_print_value): Pass correct address to
5427 baseclass_offset. Fix check for virtual base past the end of the
5428 object. Don't offset address passed to cp_print_value_fields or
5429 apply_val_pretty_printer.
5430 (cp_print_value_fields): Fix call to val_print.
5431 (cp_print_value_fields_rtti): New function.
5432 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
5433 * p-valprint.c (pascal_object_print_value_fields): Fix call to
5434 val_print.
5435 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
5436 offset to address.
5437 * language.h (struct language_defn) <la_val_print>: Document.
5438 * c-lang.h (cp_print_value_fields_rtti): Declare.
5439
5440 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5441
5442 PR libc/11214:
5443 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
5444 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
5445 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
5446
5447 2010-02-01 Michael Matz <matz@suse.de>
5448 Daniel Jacobowitz <dan@codesourcery.com>
5449
5450 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
5451 functions use a frame pointer.
5452
5453 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5454
5455 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
5456 by a conditional setting DYN_ADDR. Use DYN_ADDR.
5457 * config/djgpp/fnchange.lst: Add translations for
5458 symbol-without-target_section.exp and symbol-without-target_section.c.
5459
5460 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
5461
5462 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
5463 (remote_breakpoint_for_pc): Correct invalid_p check.
5464 * gdbarch.c: Regenerated.
5465
5466 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
5467
5468 * arm-tdep.c (arm_find_mapping_symbol): New function, from
5469 arm_pc_is_thumb.
5470 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
5471 (extend_buffer_earlier): New function.
5472 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
5473 (arm_adjust_breakpoint_address): New function.
5474 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
5475
5476 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
5477
5478 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
5479 (arm_linux_thumb2_le_breakpoint): New constants.
5480 (arm_linux_init_abi): Set thumb2_breakpoint and
5481 thumb2_breakpoint_size.
5482 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
5483 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
5484 Implement support for single stepping through IT blocks if
5485 a 32-bit Thumb breakpoint instruction is available.
5486 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
5487 is available, use it when needed.
5488 (arm_remote_breakpoint_from_pc): New function.
5489 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
5490 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
5491 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
5492
5493 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
5494
5495 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
5496 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
5497 * gdbarch.c, gdbarch.h: Regenerated.
5498 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
5499 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
5500 gdbarch_remote_breakpoint_from_pc.
5501
5502 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
5503
5504 * infrun.c (prepare_to_proceed): Handle other signals which might
5505 match a breakpoint.
5506 (handle_inferior_event): Move the check for unusual breakpoint
5507 signals earlier.
5508
5509 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
5510
5511 amd64 - function returning record with field straddling 2 registers.
5512 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
5513 a record of length <= 16 in which a field straddles the two
5514 eightbytes.
5515
5516 2010-01-29 Joel Brobecker <brobecker@adacore.com>
5517
5518 Implement return values on amd64-windows.
5519 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
5520 (amd64_windows_return_value): New function.
5521 (amd64_windows_init_abi): Call set_gdbarch_return_value with
5522 amd64_windows_return_value.
5523
5524 2010-01-29 Joel Brobecker <brobecker@adacore.com>
5525
5526 amd64-windows: 32 bytes allocated on stack by caller for integer
5527 parameter registers.
5528 * i386-tdep.h (struct gdbarch_tdep): Add new field
5529 integer_param_regs_saved_in_caller_frame.
5530 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5531 tdep->integer_param_regs_saved_in_caller_frame to 1.
5532 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
5533 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
5534
5535 2010-01-29 Joel Brobecker <brobecker@adacore.com>
5536
5537 amd64-windows: memory args passed by pointer during function calls.
5538 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
5539 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
5540 where tdep->memory_args_by_pointer is non-zero.
5541 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5542 tdep->memory_args_by_pointer to 1.
5543
5544 2010-01-29 Joel Brobecker <brobecker@adacore.com>
5545
5546 amd64-windows: Integer parameters in function calls.
5547 * i386-tdep.h (enum amd64_reg_class): New, moved here from
5548 amd64-tdep.c.
5549 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
5550 call_dummy_integer_regs, and classify.
5551 * amd64-tdep.h (amd64_classify): Add declaration.
5552 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
5553 (amd64_reg_class): Delete, moved to i386-tdep.h.
5554 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
5555 Replace call to amd64_classify by call to tdep->classify.
5556 (amd64_push_arguments): Get the list of registers to use for
5557 passing integer parameters from the gdbarch tdep structure,
5558 rather than using a hardcoded one. Replace calls to amd64_classify
5559 by calls to tdep->classify.
5560 (amd64_push_dummy_call): Get the register number used for
5561 the "hidden" argument from tdep->call_dummy_integer_regs.
5562 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
5563 and tdep->call_dummy_integer_regs. Set tdep->classify.
5564 * amd64-windows-tdep.c: Add include of gdbtypes.h.
5565 (amd64_windows_dummy_call_integer_regs): New static global.
5566 (amd64_windows_classify): New function.
5567 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
5568 tdep->call_dummy_integer_regs and tdep->classify.
5569
5570 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
5571
5572 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
5573 for the new regcache. All callers updated.
5574 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
5575 (get_thread_arch_regcache): Do not set aspace here.
5576 * regcache.h (regcache_xmalloc): Update declaration.
5577
5578 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
5579 regcache_xmalloc updated.
5580
5581 2010-01-28 Joel Brobecker <brobecker@adacore.com>
5582
5583 Another -Wunused-function error in procfs.c (sparc-solaris)
5584 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
5585 Only define if SYS_syssgi is defined.
5586 (remove_dbx_link_breakpoint): Delete declaration. Move up.
5587 (dbx_link_addr, insert_dbx_link_bpt_in_file)
5588 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
5589 is itself defined.
5590
5591 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
5592
5593 * windows-nat.c (windows_initialization_done): New variable.
5594 (get_windows_debug_event): Issue error when process dies before
5595 completely initializing.
5596 (do_initial_windows_stuff): Set flag to indicate when we are done with
5597 the initial steps of attaching to the child.
5598
5599 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5600
5601 * symtab.h (struct symbol <symtab>): New comment on NULL values.
5602
5603 2010-01-27 Doug Evans <dje@google.com>
5604
5605 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
5606
5607 * breakpoint.c (bpstat_stop_status): Delete useless code.
5608
5609 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5610
5611 * printcmd.c (display_uses_solib_p): Remove variable section. Access
5612 objfile via SYMBOL_SYMTAB.
5613
5614 2010-01-26 Tom Tromey <tromey@redhat.com>
5615
5616 PR exp/7643:
5617 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
5618 coerce_array on result.
5619
5620 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
5621
5622 * cp-namespace.c (cp_lookup_symbol_namespace): Added
5623 search_parent argument.
5624 (cp_add_using): Initialize 'searched' field.
5625 (reset_directive_searched): New function.
5626 * cp-support.h: Add 'searched' field to using_direct struct.
5627 (cp_lookup_symbol_imports): Ditto.
5628 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
5629 Perform recursive search.
5630 Implement non parent search.
5631 * valops.c (value_maybe_namespace_elt): Updated.
5632
5633 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
5634
5635 PR gdb/10929:
5636 * dwarf2read.c (read_lexical_block_scope): Create blocks for
5637 scopes which contain using directives even if they contain no
5638 declarations.
5639 * symtab.c (lookup_symbol_aux): Pass lowest level block to
5640 la_lookup_symbol_nonlocal.
5641 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
5642 cp_lookup_symbol_namespace.
5643 (cp_lookup_symbol_namespace): Perform an import lookup at every
5644 block level.
5645 (cp_lookup_symbol_imports): New function.
5646 (cp_lookup_symbol_in_namespace): New function.
5647
5648 2010-01-25 Tom Tromey <tromey@redhat.com>
5649
5650 PR gdb/11049:
5651 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
5652 result.
5653
5654 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5655
5656 * configure.ac: Only use host_os part when disabling TUI on osf.
5657 Use test to check variables, prefix strings with x.
5658 * configure: Regenerate.
5659
5660 * solib-osf.c (osf_current_sos): Initialize tail.
5661
5662 2010-01-25 gingold <gingold@adacore.com>
5663
5664 * windows-nat.c (windows_continue): Use %x to print thread id.
5665 (get_windows_debug_event): Ditto.
5666
5667 2010-01-22 Tom Tromey <tromey@redhat.com>
5668
5669 PR symtab/11199:
5670 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
5671 type and arguments. Use smash_to_methodptr_type.
5672 (read_structure_type): Call quirk_gcc_member_function_pointer
5673 later.
5674 * gdbtypes.h (smash_to_methodptr_type): Declare.
5675 * gdbtypes.c (smash_to_methodptr_type): New function.
5676 (lookup_methodptr_type): Use it.
5677
5678 2010-01-21 Tom Tromey <tromey@redhat.com>
5679
5680 PR symtab/11198:
5681 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
5682 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
5683 * glibc-tdep.c (find_minsym_and_objfile): Remove.
5684 (glibc_skip_solib_resolver): Use
5685 lookup_minimal_symbol_and_objfile.
5686
5687 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
5688
5689 * inflow.c (check_syscall): Guard by #if clause for GO32 and
5690 WIN32 targets.
5691
5692 2010-01-20 Tom Tromey <tromey@redhat.com>
5693
5694 PR backtrace/10770:
5695 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
5696 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
5697 * dwarf2expr.c (new_dwarf_expr_context): Allocate
5698 dwarf_stack_values, not CORE_ADDRs.
5699 (execute_stack_op): Change DW_OP_div and comparison operators to
5700 use signed operands.
5701
5702 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
5703
5704 Per-inferior args and tty and environment.
5705
5706 * infcmd.c (inferior_args): Rename to ...
5707 (inferior_args_scratch): ... this.
5708 (inferior_io_terminal): Rename to ...
5709 (inferior_io_terminal_scratch): ... this.
5710 (inferior_argc, inferior_argv): Remove.
5711 (set_inferior_io_terminal, get_inferior_io_terminal): Store
5712 inside current_inferior().
5713 (set_inferior_tty_command, show_inferior_tty_command): New.
5714 (get_inferior_args, set_inferior_args): Store inside
5715 current_inferior().
5716 (notice_args_set): Likewise and rename to...
5717 (set_args_command): ... this.
5718 (set_inferior_args_vector): Likewise.
5719 (notice_args_read): Rename to...
5720 (show_args_command): ...new.
5721 (tty_command): Remove.
5722 (run_command_1): Don't free old args, as they are freed by
5723 set_inferior_arg now.
5724 (run_no_args_command): Likewise.
5725 (inferior_environ): Remove.
5726 (run_command_1): Use environment of the current inferior.
5727 (environment_info, set_environment_command)
5728 (unset_environment_command, path_info, path_command): Likewise.
5729 (_initialize_infcmd): Adjust for function and variable renames.
5730 Do not init inferior_environ.
5731 * inferior.h (set_inferior_arg): Adjust prototype.
5732 (struct inferior): New fields args, argc, argv, terminal, environment.
5733 (inferior_environ): Remove declaration.
5734 * inferior.c (free_inferior): Free new fields.
5735 (add_inferior_silent): Initialize 'environment' field.
5736 * main.c (captured_main): Set arguments only after the initial
5737 inferior has been created. Set set_inferior_io_terminal,
5738 not tty_command.
5739 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
5740 inferior.
5741 (_initialize_mi_cmd_env): Adjust for disappearance of global
5742 inferior_environ.
5743 * solib.c (solib_find): Use environment of the current inferior.
5744
5745 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5746
5747 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
5748 HAVE_PYTHON.
5749 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
5750
5751 2010-01-20 Joel Brobecker <brobecker@adacore.com>
5752
5753 Get rid of ada-lang.c:function_name_from_pc.
5754 * ada-lang.c: Add "stack.h" #include.
5755 (function_name_from_pc): Delete.
5756 (is_known_support_routine): Replace call to function_name_from_pc
5757 by call to find_frame_funname.
5758 (ada_unhandled_exception_name_addr_from_raise): Likewise.
5759
5760 2010-01-19 Tom Tromey <tromey@redhat.com>
5761
5762 PR c++/11026:
5763 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
5764 objfile obstack.
5765
5766 2010-01-19 Tom Tromey <tromey@redhat.com>
5767
5768 * top.c (stop_sig, float_handler, do_nothing): Remove.
5769
5770 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5771
5772 * breakpoint.c (watchpoint_check): Check the call
5773 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
5774 Extend the comment.
5775 * config/djgpp/fnchange.lst: Add translations for
5776 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
5777 watchpoint-cond-gone-stripped.c.
5778
5779 2010-01-19 Tom Tromey <tromey@redhat.com>
5780
5781 PR c++/8000:
5782 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
5783 into parent scope, and enumerator into grandparent scope.
5784
5785 2010-01-19 Joel Brobecker <brobecker@adacore.com>
5786
5787 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
5788
5789 2010-01-19 Joel Brobecker <brobecker@adacore.com>
5790
5791 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
5792 i[34567]86-*-solaris2.1[0-9]*.
5793 * configure.tgt: Likewise.
5794
5795 2010-01-19 Joel Brobecker <brobecker@adacore.com>
5796
5797 * NEWS: Document the source command enhancement allowing it
5798 to load Python scripts. Document the "set/show script-extension"
5799 commands.
5800
5801 2010-01-19 Joel Brobecker <brobecker@adacore.com>
5802
5803 Add -Wunused-function to compile flags.
5804 * configure.ac: Add -Wunused-function to build_warnings.
5805 * configure: Regenerate.
5806
5807 2010-01-19 Joel Brobecker <brobecker@adacore.com>
5808
5809 "delete" ada-lex.c:input function, not used.
5810 * ada-lex.l: #define YY_NO_INPUT.
5811
5812 2010-01-19 Joel Brobecker <brobecker@adacore.com>
5813
5814 Delete free_named_symtabs and associated cleanup.
5815 * symfile.h (free_named_symtabs): Delete declaration.
5816 * symfile.c: Remove some commented out code (clear_symtab_users_once).
5817 (cashier_psymtab): Comment function out.
5818 Delete declaration.
5819 (free_named_symtabs): Delete.
5820 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
5821 * dbxread.c (end_psymtab): Likewise.
5822 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
5823 * exec.c (exec_close_1): Ditto.
5824 * xcoffread.c (xcoff_end_psymtab): Likewise.
5825
5826 2010-01-19 Joel Brobecker <brobecker@adacore.com>
5827
5828 * stack.c (print_block_frame_labels): Comment function out.
5829
5830 2010-01-19 Joel Brobecker <brobecker@adacore.com>
5831
5832 Delete unused or undefined functions.
5833 * breakpoint.c (ep_parse_optional_filename): Delete.
5834 * dcache.c (dcache_write_line): Remove declaration.
5835 * infrun.c (build_infrun): Remove declaration.
5836 * tracepoint.c (tracepoint_save_command): Remove declaration.
5837 * linux-nat.c (init_lwp_list): Delete. No longer used.
5838 * event-loop.c (check_async_signal_handlers): Delete declaration.
5839 * infrun.c (init_execution_control_state): Delete.
5840 (proceed): Update comment to avoid mentioning
5841 init_execution_control_state.
5842 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
5843 * ada-lang.c (ada_to_static_fixed_value): Delete.
5844 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
5845 * cp-namespace.c (cp_copy_usings): Delete.
5846 * xml-syscall.c (xml_number_of_syscalls): Delete.
5847 * progspace.c (find_program_space_by_num): Delete.
5848 * inflow.c (handle_sigio): Delete declaration.
5849 * hppa-tdep.c (hppa_alignof): Delete.
5850 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
5851 (mipsnbsd_core_osabi_sniffer): Delete.
5852
5853 2010-01-18 Tom Tromey <tromey@redhat.com>
5854
5855 PR c++/9680:
5856 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
5857 (CONST_CAST): New tokens.
5858 (exp): Add new productions.
5859 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
5860 reinterpret_cast.
5861 (is_cast_operator): New function.
5862 (yylex): Handle cast operators specially.
5863 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
5864 UNOP_REINTERPRET_CAST>: New cases.
5865 * expprint.c (print_subexp_standard): Likewise.
5866 (op_name_standard): Likewise.
5867 (dump_subexp_body_standard): Likewise.
5868 * parse.c (operator_length_standard): Likewise.
5869 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
5870 UNOP_REINTERPRET_CAST.
5871 * gdbtypes.c (class_types_same_p): New function.
5872 (is_ancestor): Use it.
5873 (is_public_ancestor): New function.
5874 (is_unique_ancestor_worker): Likewise.
5875 (is_unique_ancestor): Likewise.
5876 * gdbtypes.h (class_types_same_p, is_public_ancestor)
5877 (is_unique_ancestor): Declare.
5878 * valops.c (value_reinterpret_cast): New function.
5879 (dynamic_cast_check_1): Likewise.
5880 (dynamic_cast_check_2): Likewise.
5881 (value_dynamic_cast): Likewise.
5882 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
5883
5884 2010-01-18 Joel Brobecker <brobecker@adacore.com>
5885
5886 Fix build failure when building without Python support.
5887 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
5888 is not defined.
5889
5890 2010-01-18 Joel Brobecker <brobecker@adacore.com>
5891
5892 Use XVS field type instead of doing a parallel lookup.
5893 * ada-lang.c (ada_get_base_type): Follow the XVS field type
5894 if it is a reference type instead of doing a type lookup using
5895 the XVS field name.
5896
5897 2010-01-18 Joel Brobecker <brobecker@adacore.com>
5898
5899 Trust PAD types instead of using PAD___XVS.
5900 * ada-lang.c (trust_pad_over_xvs): New static variable.
5901 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
5902 parallel XVS type, follow the XVS type instead of the PAD type.
5903 (unwrap_value): Make sure that there is no parallel XVE type
5904 before returning the value as is.
5905 (set_ada_list, show_ada_list): New static variables.
5906 (set_ada_command, show_ada_command): New functions.
5907 (_initialize_ada_language): Add new "set/show ada" prefix commands.
5908 Add new "set/show ada trust-PAD-over-XVS" setting.
5909
5910 2010-01-18 Tom Tromey <tromey@redhat.com>
5911 Thiago Jung Bauermann <bauerman@br.ibm.com>
5912
5913 Allow "source" to load python scripts.
5914 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
5915 * python/python.c (source_python_script): New function.
5916 * python/python.h (source_python_script): Add declaration.
5917 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
5918 (script_ext_off, script_ext_soft, script_ext_strict)
5919 (script_ext_enums, script_ext_mode): New static constants.
5920 (show_script_ext_mode, find_and_open_script): New functions.
5921 (source_script): Enhance to handle Python scripts.
5922 (init_cli_cmds): Add set/show script-extension commands.
5923
5924 2010-01-16 Stan Shebs <stan@codesourcery.com>
5925
5926 * tracepoint.h (struct trace_status): Use unsigned long long
5927 instead of size_t.
5928 * tracepoint.c (trace_status_command): Fix printf directive.
5929 (trace_save_command): Check fwrite returns, fix printf directive.
5930 (trace_filename): New global.
5931 (tfile_open): Set it, check read returns.
5932 (tfile_close): Free trace_filename.
5933 (tfile_get_traceframe_address): Check read returns.
5934 (tfile_trace_find): Ditto.
5935 (tfile_fetch_registers): Ditto.
5936 (tfile_xfer_partial): Ditto.
5937 (tfile_get_trace_state_variable_value): Ditto.
5938
5939 2010-01-15 Stan Shebs <stan@codesourcery.com>
5940
5941 Add trace file support.
5942 * tracepoint.h (enum trace_stop_reason): New enum.
5943 (struct trace_status): New struct.
5944 (parse_trace_status): Declare.
5945 (struct uploaded_tp): Move here from remote.c,
5946 add fields for actions.
5947 (struct uploaded_tsv): New struct.
5948 * tracepoint.c (tfile_ops): New target vector.
5949 (trace_fd): New global.
5950 (tfile_open): New function.
5951 (tfile_close): New function.
5952 (tfile_files_info): New function.
5953 (tfile_get_trace_status): New function.
5954 (tfile_get_traceframe_address): New function.
5955 (tfile_trace_find): New function.
5956 (tfile_fetch_registers): New function.
5957 (tfile_xfer_partial): New function.
5958 (tfile_get_trace_state_variable_value): New function.
5959 (init_tfile_ops): New function.
5960 (_initialize_tracepoint): Call it, add tfile target.
5961 (trace_status): New global.
5962 (current_trace_status): New function.
5963 (trace_running_p): Remove, change all users to get from
5964 current_trace_status()->running.
5965 (get_trace_status): Remove.
5966 (trace_status_command): Call target_get_trace_status directly,
5967 report more detail including tracing stop reasons.
5968 (trace_find_command): Always allow tfind on a file.
5969 (trace_find_pc_command): Ditto.
5970 (trace_find_tracepoint_command): Ditto.
5971 (trace_find_line_command): Ditto.
5972 (trace_find_range_command): Ditto.
5973 (trace_find_outside_command): Ditto.
5974 (trace_frames_offset, cur_offset): Declare as off_t.
5975 (trace_regblock_size): Rename from reg_size, update users.
5976 (parse_trace_status): New function.
5977 (tfile_interp_line): New function.
5978 (disconnect_or_stop_tracing): Ensure current trace
5979 status before asking what to do.
5980 (stop_reason_names): New global.
5981 (trace_save_command): New command.
5982 (get_uploaded_tp): Move here from remote.c.
5983 (find_matching_tracepoint): Ditto.
5984 (merge_uploaded_tracepoints): New function.
5985 (parse_trace_status): Use stop_reason_names.
5986 (_initialize_tracepoint): Define tsave command.
5987 * target.h (target_ops): New fields to_save_trace_data,
5988 to_upload_tracepoints, to_upload_trace_state_variables,
5989 to_get_raw_trace_data, change to_get_trace_status
5990 to take a pointer to a status struct.
5991 (target_save_trace_data): New macro.
5992 (target_upload_tracepoints): New macro.
5993 (target_upload_trace_state_variables): New macro.
5994 (target_get_raw_trace_data): New macro.
5995 * target.c (update_current_target): Add new methods, change
5996 signature of to_get_trace_status.
5997 * remote.c (hex2bin): Make globally visible.
5998 (bin2hex): Ditto.
5999 (remote_download_trace_state_variable): Download name also.
6000 (remote_get_trace_status): Update parameter, use
6001 parse_trace_status.
6002 (remote_save_trace_data): New function.
6003 (remote_upload_tracepoints): New function.
6004 (remote_upload_trace_state_variables): New function.
6005 (remote_get_raw_trace_data): New function.
6006 (remote_start_remote): Use them.
6007 (_initialize_remote_ops): Add operations.
6008 * ax-gdb.c: Include breakpoint.h.
6009 * breakpoint.c (create_tracepoint_from_upload): Use
6010 break_command_really, return tracepoint, warn about unimplemented
6011 parts.
6012 * NEWS: Mention trace file addition.
6013
6014 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6015
6016 Fix compilation warning on gcc-3.4.
6017 * exec.c (print_section_info): Move the `displacement' variable
6018 initialization to its declaration.
6019
6020 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6021
6022 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
6023 comparison.
6024
6025 2010-01-15 Eric Botcazou <botcazou@adacore.com>
6026
6027 "info tasks" broken by typedefs in ATCB type definitions.
6028 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
6029 ada_check_typedef before retrieving the length of the type for
6030 regular fields.
6031
6032 2010-01-15 Joel Brobecker <brobecker@adacore.com>
6033
6034 Do not use name-based lookup for unconstrained packed arrays.
6035 * ada-lang.c (find_parallel_type_by_descriptive_type):
6036 Limit the fallback to name-based lookups to the case where
6037 the type is a constrained packed array.
6038
6039 2010-01-15 Joel Brobecker <brobecker@adacore.com>
6040
6041 Enhance gdb-gdb.py to handle main_type.type_specific.
6042 * gdb-gdb.py: Print the type-specific part of struct main_type.
6043
6044 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6045
6046 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
6047 * configure: Regenerate.
6048 * config.in: Regenerate.
6049 * utils.c: Include sys/resource.h.
6050 (dump_core, can_dump_core): New.
6051 (internal_vproblem): Update the comment. Check can_dump_core while
6052 setting dump_core_p. Replace two abort calls by dump_core calls.
6053
6054 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6055 Eli Zaretskii <eliz@gnu.org>
6056
6057 * NEWS: Document the PIE support.
6058
6059 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6060
6061 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
6062 (check_is_pie_binary, _initialize_linux_tdep): Remove.
6063
6064 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6065
6066 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
6067 Replace exec_entry_point call by bfd_get_start_address.
6068
6069 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6070
6071 Support Valgrind attachments broken by the PIE support.
6072 * auxv.c: Include gdbcore.h.
6073 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
6074 parameters ops, object and annex. Remove their assertions.
6075 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
6076 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
6077 (memory_xfer_auxv): ... here.
6078 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
6079 memory_xfer_auxv.
6080 * procfs.c (procfs_xfer_partial): Likewise.
6081 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
6082 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
6083 (svr4_solib_create_inferior_hook): Conditionalize the
6084 svr4_relocate_main_executable call.
6085
6086 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6087
6088 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
6089 target_section. Find SECT in current_target_sections, gdb_assert it.
6090 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
6091 New variable abfd.
6092 * symtab.c (lookup_objfile_from_block): Return the binary file instead
6093 of separate debug info file.
6094
6095 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6096
6097 Support PIEs with no symfile_objfile.
6098 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
6099 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
6100
6101 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6102
6103 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
6104 code part to ...
6105 (svr4_static_exec_displacement): ... a new function.
6106 (svr4_exec_displacement): New function.
6107 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
6108 new_offsets using alloca now. Remove variable old_chain and changed.
6109 Call objfile_relocate unconditionally now.
6110
6111 2010-01-14 Doug Evans <dje@google.com>
6112
6113 * gdbtypes.c (arch_flags_type): Fix comment.
6114 * gdbtypes.h (arch_composite_type): Fix comment.
6115
6116 2009-01-14 Tristan Gingold <gingold@adacore.com>
6117
6118 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
6119 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
6120 to symbol_file_add_from_bfd. Add OSO as separate objfile.
6121 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
6122 macho_add_oso_symfile.
6123 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
6124
6125 2010-01-14 Joel Brobecker <brobecker@adacore.com>
6126
6127 Tru64: Dead threads are never deleted.
6128 * dec-thread.c (dec_thread_ptid_is_alive): New function.
6129 (dec_thread_count_gdb_threads): Fix counter increment.
6130 (dec_thread_add_gdb_thread): Fix *listp increment.
6131 (resync_thread_list): Fix bug in deletion of dead threads that
6132 caused all threads to be deleted, instead of just the dead ones.
6133
6134 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
6135
6136 PR python/10705
6137
6138 * python/python-internal.h: Add lazy_string_object_type
6139 definition.
6140 (create_lazy_string_object, gdbpy_initialize_lazy_string)
6141 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
6142 * python/py-value.c (valpy_lazy_string): New function.
6143 (convert_value_from_python): Add lazy string conversion.
6144 * python/py-prettyprint.c (pretty_print_one_value): Check if
6145 return is also a lazy string.
6146 (print_string_repr): Add lazy string printing branch.
6147 (print_children): Likewise.
6148 * python/py-lazy-string.c: New file. Implement lazy strings.
6149 * python/python.c (_initialize_python): Call
6150 gdbpy_initialize_lazy_string.
6151 * varobj.c (value_get_print_value): Add lazy string printing
6152 branch. Account for encoding.
6153 * c-lang.c (c_printstr): Account for new encoding argument. If
6154 encoding is NULL, find encoding suited for type, otherwise use
6155 user encoding.
6156 * language.h (language_defn): Add encoding argument.
6157 (LA_PRINT_STRING): Likewise.
6158 * language.c (unk_lang_printstr): Update to reflect new encoding
6159 argument to language_defn.
6160 * ada-lang.h (ada_printstr): Likewise.
6161 * c-lang.h (c_printstr): Likewise.
6162 * p-lang.h (pascal_printstr);
6163 * f-lang.c (f_printstr): Likewise.
6164 * m2-lang.c (m2_printstr): Likewise.
6165 * objc-lang.c (objc_printstr): Likewise.
6166 * p-lang.c (pascal_printstr): Likewise.
6167 * scm-lang.c (scm_printstr): Likewise.
6168 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
6169 encoding argument.
6170 * ada-valprint.c (ada_printstr): Likewise.
6171 * f-valprint.c (f_val_print): Likewise
6172 * m2-valprint.c (m2_val_print): Likewise.
6173 * p-valprint.c (pascal_val_print): Likewise.
6174 * expprint.c (print_subexp_standard): Likewise.
6175 * valprint.c (val_print_string): Likewise.
6176 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
6177 (SUBDIR_PYTHON_SRCS): Likewise.
6178 (py-lazy-string.o): New rule.
6179
6180 2010-01-13 Doug Evans <dje@google.com>
6181
6182 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
6183 uninitialized" warning from gcc on local `tree'.
6184
6185 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
6186
6187 Implement core awareness.
6188
6189 * bcache.c (compare_ints): Remove
6190 (print_percentage): Use compare_positive_ints.
6191 * defs.h (compare_positive_ints): Declare.
6192 * linux-nat.h (struct lin_lwp): New field core.
6193 (linux_nat_core_of_thread_1): Declare.
6194 * linux-nat.c (add_lwp): Init the 'core' field.
6195 (linux_nat_wait_1): Record the core.
6196 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
6197 (linux_nat_add_target): Register the above.
6198 * linux-thread-db.c (update_thread_core): New.
6199 (thread_db_find_new_threads): Update core information for
6200 every thread.
6201 * remote.c (struct private_thread_info): New.
6202 (free_private_thread_info, demand_private_info): New.
6203 (PACKET_qXfer_threads, use_osdata_threads): New.
6204 (struct thread_item, threads_parsing_context
6205 (start_thread, end_thread, thread_attributes)
6206 (thread_children, threads_children, threads_elements): New.
6207 (remote_threads_info): Try qXfer:threads before anything
6208 else.
6209 (remote_protocol_packets): Register qXfer:threads.
6210 (remote_open_1): Init use_osdata_threads.
6211 (struct stop_reply): New field 'core'.
6212 (remote_parse_stop_reply): Parse core number.
6213 (process_stop_reply): Record core number.
6214 (remote_xfer_partial): Handle qXfer:threads.
6215 (remote_core_of_thread): New.
6216 (init_remote_ops): Register remote_core_of_thread.
6217 (_initialize_remote): Register qXfer:read.
6218 * target.c (target_core_of_thread): New
6219 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
6220 (struct target_ops): New field to_core_of_threads.
6221 (target_core_of_thread): Declare.
6222 * gdbthread.h (struct thread_info): New field private_dtor.
6223 * thread.c (print_thread_info): Report the core.
6224 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
6225 * utils.c (compare_positive_ints): New.
6226 * features/threads.dtd: New.
6227 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
6228 * mi/mi-main.c (struct collect_cores_data, collect_cores)
6229 (do_nothing, free_vector_of_osdata_items)
6230 (splay_tree_int_comparator, free_splay_tree): New.
6231 (print_one_inferior_data): Implemented printing of selected
6232 inferiors. Collect and print cores.
6233 (output_cores): New.
6234 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
6235 thread groups together with --available.
6236
6237 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6238
6239 * configure: Regenerate (for _STRUCTURED_PROC).
6240
6241 2010-01-12 Joel Brobecker <brobecker@adacore.com>
6242
6243 Delete dead function.
6244 * ada-lang.c (extract_string): Delete. No longer used.
6245
6246 2010-01-12 Joel Brobecker <brobecker@adacore.com>
6247
6248 Fix -Wunused warning in dec-thread.c.
6249 * dec-thread.c (dec_thread_count_gdb_threads)
6250 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
6251
6252 2010-01-12 Joel Brobecker <brobecker@adacore.com>
6253
6254 * ada-valprint.c (ada_print_floating): Remove trailing space.
6255
6256 2010-01-12 Joel Brobecker <brobecker@adacore.com>
6257
6258 Add support for DW_AT_GNAT_descriptive_type.
6259 * gdbtypes.h (enum type_specific_kind): New enum.
6260 (struct main_type) [type_specific_field]: New component.
6261 [type_specific]: Add new component "gnat_stuff".
6262 (struct gnat_aux_type): New type.
6263 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
6264 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
6265 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
6266 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
6267 (TYPE_SPECIFIC_FIELD): New macros.
6268 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
6269 type does not hold any cplus-specific data.
6270 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
6271 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
6272 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
6273 cplus-specific data.
6274 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
6275 Set new component TYPE_SPECIFIC_FIELD (type).
6276 (gnat_aux_default): New constant.
6277 (allocate_gnat_aux_type): New function.
6278 (init_type): Add initialization the type-specific stuff for
6279 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
6280 (print_gnat_stuff): New function.
6281 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
6282 specific data. Adjust code that prints the contents of the
6283 type-specific union using the TYPE_SPECIFIC_FIELD value.
6284 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
6285 the type cplus stuff for Ada types.
6286 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
6287 Error out if these routines are called with an Ada type.
6288 (read_structure_type, read_array_type, read_subrange_type):
6289 Add call to set_descriptive_type.
6290 (set_die_type): Initialize the gnat-specific data if necessary.
6291 (need_gnat_info, die_descriptive_type, set_descriptive_type):
6292 New functions.
6293 * ada-lang.c (decode_constrained_packed_array_type): Use
6294 decode_constrained_packed_array_type instead of doing a standard
6295 lookup to locate a parallel type.
6296 (find_parallel_type_by_descriptive_type): New function.
6297 (ada_find_parallel_type_with_name): New function.
6298 (ada_find_parallel_type): Reimplement using
6299 ada_find_parallel_type_with_name.
6300 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
6301 to check if type has a cplus stuff.
6302 * linespec.c (total_number_of_methods): Likewise.
6303 * mdebugread.c (new_type): Likewise.
6304
6305 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6306
6307 * NEWS: Document the 0b binary number prefix parsing.
6308
6309 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6310
6311 * objfiles.c (objfile_relocate1): Change the return type to int.
6312 Describe the new return value. Return non-zero if data changed.
6313 (objfile_relocate): New variable changed. Set it. Call
6314 breakpoint_re_set depending on CHANGED.
6315
6316 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6317
6318 Implement binary numbers parsing.
6319 * c-exp.y (parse_number): New case 'b' and 'B'.
6320
6321 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6322 Tristan Gingold <gingold@adacore.com>
6323
6324 * solib.c (info_sharedlibrary_command): Replace
6325 objfile_has_partial_symbols and objfile_has_full_symbols calls by
6326 objfile_has_symbols.
6327
6328 2010-01-10 Joel Brobecker <brobecker@adacore.com>
6329
6330 * NEWS: Document the improvements made to the mips-irix port.
6331
6332 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6333
6334 Fix the documentation of valprint.c:value_print.
6335 * valprint.c (value_print): Update the function description to
6336 mention that the syntax of the output follows the current_language,
6337 not necessarily C.
6338
6339 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6340
6341 Fix displacement of separate debug info files.
6342 * objfiles.c (objfile_relocate): Rename to ...
6343 (objfile_relocate1): ... here and make it static. Extend the comment.
6344 (objfile_relocate): New function.
6345 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
6346 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
6347 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
6348 allocated using alloca.
6349 * symfile.c (copy_section_addr_info): Remove.
6350 (build_section_addr_info_from_objfile): Make it global. New variables
6351 addr_bit and mask, use them.
6352 * symfile.h (build_section_addr_info_from_objfile): New prototype.
6353 (copy_section_addr_info): Remove.
6354
6355 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6356
6357 Signal unwinder for mips-irix N32.
6358 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
6359 tramp-frame.h.
6360 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
6361 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
6362 (SIGCONTEXT_LO_OFF): New macros.
6363 (mips_irix_n32_tramp_frame_init): New function.
6364 (mips_irix_n32_tramp_frame): New static constant.
6365 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
6366
6367 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6368
6369 Breakpoint in shared library does not work on mips-irix.
6370 * procfs.c: #include "observer.h".
6371 (procfs_inferior_created): New function, moving here the code
6372 which unsets the syssgi syscall-exit notifications.
6373 (procfs_create_inferior): Remove the code which unsets the syssgi
6374 syscall-exit notifications. It is too early to do this here.
6375 (_initialize_procfs): Attach the procfs_inferior_created observer.
6376
6377 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6378
6379 Wrong return convention for arrays (mips-irix).
6380 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
6381 128 bits or smaller are returned the same way as structs
6382 and unions of the the same size.
6383
6384 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6385
6386 Cannot set the PC on mips-irix.
6387 * irix5-nat.c (fill_gregset): Check regno against the raw PC
6388 register number, no the cooked one.
6389
6390 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6391
6392 Error while loading core file on mips-irix.
6393 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
6394 if debugging from a core file.
6395
6396 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6397
6398 GDB hangs when attaching to process on mips-irix.
6399 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
6400 attaching to a process.
6401
6402 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6403
6404 Use the correct breakpoint instruction on mips-irix.
6405 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
6406 containing the correct breakpoint instruction to use on mips-irix.
6407 Use it when the osabi is GDB_OSABI_IRIX.
6408
6409 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6410
6411 -Wunused warning in procfs.c (mips-irix only).
6412 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
6413 throughout instead of using praddset and prdelset respectively.
6414
6415 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6416
6417 GDB crash while stepping into function.
6418 * infrun.c (handle_inferior_event): Refetch the current frame
6419 after handling what.main_action, in case that pointer became
6420 dangling.
6421
6422 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6423
6424 Fix build failure of solaris-hosted cross debuggers.
6425 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
6426
6427 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
6428
6429 Fix build failure on sparc-solaris.
6430 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
6431
6432 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6433
6434 Move some symfile code into subroutines.
6435 * symfile.h (relative_addr_info_to_section_offsets)
6436 (addr_info_make_relative): New prototypes.
6437 * symfile.c (default_symfile_offsets): Move a part to ...
6438 (relative_addr_info_to_section_offsets): ... this new function.
6439 (default_symfile_offsets): Call it.
6440 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
6441 this part to ...
6442 (addr_info_make_relative): ... this new function.
6443
6444 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6445
6446 Add from_tty to solib_create_inferior_hook.
6447 * infcmd.c (post_create_inferior): Move solib_add after
6448 solib_create_inferior_hook. Pass from_tty to
6449 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
6450 0 from_tty and comment why.
6451 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
6452 * linux-nat.c (linux_child_follow_fork): Likewise.
6453 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
6454 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
6455 from_tty.
6456 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
6457 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
6458 * solib-null.c (null_solib_create_inferior_hook): Likewise.
6459 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
6460 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
6461 * solib-som.c (som_solib_create_inferior_hook): Likewise.
6462 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
6463 Pass it to svr4_so_ops.solib_create_inferior_hook.
6464 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
6465 from_tty.
6466 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
6467 solib_add.
6468 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
6469 enable_break.
6470 * solib-target.c (solib_target_solib_create_inferior_hook): New
6471 parameter from_tty.
6472 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
6473 it to ops->solib_create_inferior_hook.
6474 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
6475 Move solib_add after solib_create_inferior_hook, call it now with
6476 from_tty as 0. New comment there.
6477 * solib.h (solib_create_inferior_hook): New parameter from_tty.
6478 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
6479 Likewise.
6480
6481 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
6482
6483 Fix multiexec race.
6484 * infrun.c (handle_inferior_event): Use get_thread_regcache
6485 with events ptid, not get_current_regcache.
6486
6487 2009-01-08 Joel Brobecker <brobecker@adacore.com>
6488
6489 GDB crash with empty executable name (MinGW).
6490 * source.c (openp): Add assert that parameter string is not NULL.
6491 if parameter string is an empty string, then return with a failure
6492 immediately.
6493
6494 2009-01-08 Joel Brobecker <brobecker@adacore.com>
6495
6496 Get rid of support for VAX Floats.
6497 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
6498 (ada_vax_float_print_function): Delete.
6499 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
6500 (ada_vax_float_print_function): Delete.
6501 * ada-typeprint.c (print_vax_floating_point_type): Delete.
6502 (ada_print_type): Remove support for VAX floats.
6503 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
6504
6505 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6506
6507 * stabsread.c (read_args): Handle zero arguments.
6508
6509 2009-01-08 Joel Brobecker <brobecker@adacore.com>
6510
6511 Cannot find in-tree libiconv.a after reconfigure.
6512 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
6513 that we can use, then cache the path to this archive.
6514 * configure: Regenerate.
6515
6516 2010-01-07 Stan Shebs <stan@codesourcery.com>
6517
6518 Make tracepoint operations go through target vector.
6519 * target.h (enum trace_find_type): New enum.
6520 (struct target_ops): New fields to_trace_init,
6521 to_download_tracepoint, to_download_trace_state_variable,
6522 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
6523 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
6524 to_set_disconnected_tracing.
6525 (target_trace_init): New macro.
6526 (target_download_tracepoint): New macro.
6527 (target_download_trace_state_variable): New macro.
6528 (target_trace_start): New macro.
6529 (target_trace_set_readonly_regions): New macro.
6530 (target_get_trace_status): New macro.
6531 (target_trace_stop): New macro.
6532 (target_trace_find): New macro.
6533 (target_get_trace_state_variable_value): New macro.
6534 (target_set_disconnected_tracing): New macro.
6535 * target.c (update_current_target): Inherit and set defaults for
6536 tracepoint operations.
6537 * tracepoint.c (default_collect): Make globally visible.
6538 (target_is_remote): Remove, along with all calls.
6539 (tvariables_info): Call target_get_trace_state_variable_value.
6540 (remote_set_transparent_ranges): Remove.
6541 (trace_start_command): Call target_trace_init,
6542 target_download_tracepoint, etc.
6543 (download_tracepoint): Remove.
6544 (trace_stop_command): Simplify.
6545 (stop_tracing): Call target_trace_stop.
6546 (get_trace_status): Call target_get_trace_status.
6547 (trace_status_command): Add case for targets that cannot trace.
6548 (finish_tfind_command): Change to take numerical arguments, call
6549 target_trace_find.
6550 (trace_find_command): Update call to finish_tfind_command.
6551 (trace_find_pc_command): Ditto.
6552 (trace_find_tracepoint_command): Ditto.
6553 (trace_find_line_command): Ditto.
6554 (trace_find_range_command): Ditto.
6555 (trace_find_outside_command): Ditto.
6556 (set_disconnected_tracing_value): Call
6557 target_set_disconnected_tracing.
6558 * remote.c: Add protocol encoding bits from tracepoint.c.
6559 (trace_error): Move from tracepoint.c.
6560 (remote_get_noisy_reply): Ditto.
6561 (free_actions_list_cleanup_wrapper): Ditto.
6562 (free_actions_list): Ditto.
6563 (remote_trace_init): New function.
6564 (remote_download_tracepoint): New function.
6565 (remote_download_trace_state_variable): New function.
6566 (remote_trace_set_readonly_regions): New function.
6567 (remote_trace_start): New function.
6568 (remote_get_trace_status): New function.
6569 (remote_trace_stop): New function.
6570 (remote_trace_find): New function.
6571 (remote_download_trace_state_variable): New function.
6572 (remote_set_disconnected_tracing): New function.
6573 (init_remote_ops): Add tracepoint operations.
6574
6575 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
6576
6577 2010-01-07 Tristan Gingold <gingold@adacore.com>
6578
6579 * symfile.c (build_section_addr_info_from_objfile): New function.
6580 (symbol_file_add_separate): Don't use offsets from objfile but
6581 built an addr info.
6582
6583 2010-01-06 Stan Shebs <stan@codesourcery.com>
6584
6585 Support disconnected tracing.
6586 * infcmd.c (detach_command): Ask whether to stop tracing.
6587 * cli/cli-cmds.c (quit_command): Ditto.
6588 * breakpoint.h (struct breakpoint): New field number_on_target.
6589 * breakpoint.c (create_tracepoint_from_upload): New function.
6590 (get_tracepoint_by_number_on_target): New function.
6591 * remote.c (struct remote): New field disconnected_tracing.
6592 (remote_disconnected_tracing_feature): New function.
6593 (remote_protocol_features): Add DisconnectedTracing.
6594 (struct uploaded_tp): New struct.
6595 (uploaded_tps): New global.
6596 (get_uploaded_tp): New function.
6597 (find_matching_tracepoint): New function.
6598 (remote_get_tracing_state): New function.
6599 (remote_start_remote): Call it.
6600 * tracepoint.c (disconnected_tracing): New global.
6601 (trace_start_command): Initialize number_on_target.
6602 (stop_tracing): New function, split out from...
6603 (trace_stop_command): Call stop_tracing.
6604 (get_trace_status): New function, split out from...
6605 (trace_status_command): Call get_trace_status, add info on
6606 disconnection behavior.
6607 (disconnect_or_stop_tracing): New function.
6608 (finish_tfind_command): Translate from number on target.
6609 (trace_find_tracepoint_command): Translate to number on target.
6610 (send_disconnected_tracing_value): New function.
6611 (set_disconnected_tracing): New function.
6612 (_initialize_tracepoint): Add disconnected-tracing variable.
6613 * NEWS: Mention disconnected tracing.
6614
6615 2010-01-06 Tristan Gingold <gingold@adacore.com>
6616
6617 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
6618 parameter to main_objfile. Iterate on all separate debug objfiles.
6619 * symfile.h (symbol_file_add_separate)
6620 (find_separate_debug_file_by_debuglink): Remove parameter names.
6621 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
6622 (reread_symbols): Use free_objfile_separate_debug.
6623 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
6624 Adjust comment.
6625 (objfile_separate_debug_iterate, add_separate_debug_objfile)
6626 (free_objfile_separate_debug): New prototypes.
6627 * objfiles.c (objfile_separate_debug_iterate): New function.
6628 (add_separate_debug_objfile, free_objfile_separate_debug): New
6629 functions.
6630 (free_objfile): Use free_objfile_separate_debug. Adjust for
6631 multiple separate debug objfile.
6632 (objfile_has_symbols): Adjust comment. Iterate on all separate
6633 debug objfiles.
6634 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
6635 debug objfile.
6636 (lookup_minimal_symbol_text): Ditto.
6637 (lookup_minimal_symbol_by_pc_name): Ditto.
6638 (lookup_minimal_symbol_solib_trampoline): Ditto.
6639 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
6640 debug objfiles.
6641
6642 2010-01-05 Stan Shebs <stan@codesourcery.com>
6643
6644 Add fast tracepoints.
6645 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
6646 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
6647 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
6648 * breakpoint.c (tracepoint_type): New function.
6649 (ALL_TRACEPOINTS): Use it.
6650 (should_be_inserted): Ditto.
6651 (bpstat_check_location): Ditto.
6652 (print_one_breakpoint_location): Ditto.
6653 (user_settable_breakpoint): Ditto.
6654 (set_breakpoint_location_function): Ditto.
6655 (disable_breakpoints_in_shlibs): Ditto.
6656 (delete_trace_command): Ditto.
6657 (print_it_typical): Add bp_fast_tracepoint case.
6658 (bpstat_what): Ditto.
6659 (print_one_breakpoint_location): Ditto.
6660 (allocate_bp_location): Ditto.
6661 (mention): Ditto.
6662 (breakpoint_re_set_one): Ditto.
6663 (disable_command): Ditto.
6664 (enable_command): Ditto.
6665 (check_fast_tracepoint_sals): New function.
6666 (break_command_really): Call it.
6667 (ftrace_command): New function.
6668 (_initialize_breakpoint): Add ftrace command.
6669 * gdbarch.sh (fast_tracepoint_valid_at): New.
6670 * gdbarch.h, gdbarch.c: Regenerate.
6671 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
6672 (i386_gdbarch_init): Use it.
6673 * remote.c (struct remote_state): New field fast_tracepoints.
6674 (PACKET_FastTracepoints): New packet config type.
6675 (remote_fast_tracepoint_feature): New function.
6676 (remote_protocol_features): Add FastTracepoints.
6677 (remote_supports_fast_tracepoints): New function.
6678 (_initialize_remote): Add FastTracepoints.
6679 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
6680 * NEWS: Mention fast tracepoints.
6681
6682 2010-01-06 Joel Brobecker <brobecker@adacore.com>
6683
6684 * gdb-gdb.py: New file.
6685
6686 2010-01-05 Michael Snyder <msnyder@vmware.com>
6687
6688 * infrun.c (handle_inferior_event): Fix typo in comment.
6689
6690 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6691
6692 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
6693
6694 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
6695
6696 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
6697 and s390x-linux64.
6698 (s390-linux32-expedite): Define.
6699 (s390-linux64-expedite): Define.
6700 (s390x-linux64-expedite): Define.
6701 * features/s390-acr.xml: New file.
6702 * features/s390-fpr.xml: New file.
6703 * features/s390-core32.xml: New file.
6704 * features/s390-core64.xml: New file.
6705 * features/s390x-core64.xml: New file.
6706 * features/s390-linux32.xml: New file.
6707 * features/s390-linux64.xml: New file.
6708 * features/s390x-linux64.xml: New file.
6709 * features/s390-linux32.c: New generated file.
6710 * features/s390-linux64.c: New generated file.
6711 * features/s390x-linux64.c: New generated file.
6712
6713 * regformats/s390-linux32.dat: New generated file.
6714 * regformats/s390-linux64.dat: New generated file.
6715 * regformats/s390x-linux64.dat: New generated file.
6716 * regformats/reg-s390.dat: Remove.
6717 * regformats/reg-s390x.dat: Remove.
6718
6719 * s390-nat.c: Include "auxv.h" and <elf.h>.
6720 (HWCAP_S390_HIGH_GPRS): Define if undefined.
6721 (s390_target_wordsize): New function.
6722 (s390_auxv_parse): Likewise.
6723 (s390_get_hwcap): Likewise.
6724 (s390_read_description): Likewise.
6725 (_initialize_s390_nat): Install s390_auxv_parse and
6726 s390_read_description.
6727
6728 * s390-tdep.c: Include "features/s390-linux32.c",
6729 "features/s390-linux64.c", and "features/s390x-linux64.c".
6730 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
6731 (s390_register_call_saved): New function.
6732 (s390_register_name): Remove.
6733 (s390_register_type): Remove.
6734 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
6735 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
6736 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
6737 (s390_pseudo_register_name): New function.
6738 (s390_pseudo_register_type): New function.
6739 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
6740 Handle full GPR pesudos and varying pseudo register numbers.
6741 (s390_pseudo_register_write): Likewise
6742 (s390x_pseudo_register_read): Remove.
6743 (s390x_pseudo_register_write): Likewise.
6744 (s390_register_group): Remove.
6745 (s390_pseudo_register_group): New function.
6746 (s390_regmap_gregset): Add GPR upper halves.
6747 (s390x_regmap_gregset): Likewise.
6748 (s390_regmap_fpregset): Likewise.
6749 (s390_regmap_upper): New global variable.
6750 (s390_upper_regset): New global variable.
6751 (s390_upper_regset_sections): New global variable.
6752 (s390_regset_from_core_section): Handle GPR upper halves.
6753 (s390_core_read_description): New function.
6754 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
6755 register information. Handle varying pseudo register numbers.
6756 (s390_backchain_frame_unwind_cache): Likewise.
6757 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
6758 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
6759 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
6760 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
6761 Handle varying pseudo register numbers.
6762 (s390_unwind_pc): Handle varying pseudo register numbers.
6763 (s390_dwarf2_prev_register): New function.
6764 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
6765 register information. Handle varying pseudo register numbers.
6766 Install s390_dwarf2_prev_register to unwind full GPRs.
6767 (s390_gdbarch_init): Handle target descriptions. Assign varying
6768 pseudo register numbers. Install s390_adjust_frame_regnum.
6769 (_initialize_s390_tdep): Initialize target descriptions.
6770
6771 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
6772 (S390_NUM_REGS): Redefine to include upper half registers.
6773 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
6774 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
6775 (tdesc_s390_linux32): Add declaration.
6776 (tdesc_s390_linux64): Likewise.
6777 (tdesc_s390x_linux64): Likewise.
6778
6779 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
6780
6781 * regset.h (struct core_regset_section): Add HUMAN_NAME.
6782 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
6783 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
6784 (ppc_linux_vmx_regset_sections): Likewise.
6785 (ppc_linux_fp_regset_sections): Likewise.
6786
6787 * corelow.c (get_core_register_section): Constify arguments.
6788 (get_core_registers): Use gdbarch_core_regset_sections instead
6789 of hard-coded platform-specific register section names.
6790
6791 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
6792
6793 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
6794 a register, assume the least-significant part is used.
6795 (write_pieced_value): Likewise.
6796
6797 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
6798
6799 * printcmd.c: Include "arch-utils.h".
6800 (do_one_display): Re-parse expression if current architecture changed.
6801
6802 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6803 Joel Brobecker <brobecker@adacore.com>
6804
6805 * gdbtypes.c (check_typedef): New comment on type length.
6806 * value.c (allocate_value_lazy): Remove the unused atype variable. New
6807 comment on type length.
6808 (value_primitive_field): Keep the original TYPE value, new comment.
6809
6810 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6811
6812 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
6813 p_start. Change != comparisons to > and < comparisons.
6814
6815 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6816
6817 * cli/cli-script.c (process_next_line): Check P2 overrun.
6818
6819 2009-01-01 Joel Brobecker <brobecker@adacore.com>
6820
6821 Update the copyright hearder to add year 2010 for most GDB files.
6822
6823 2009-01-01 Joel Brobecker <brobecker@adacore.com>
6824
6825 Fix build failure in inf-ptrace.c.
6826 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
6827
6828 2010-01-01 Joel Brobecker <brobecker@adacore.com>
6829
6830 * top.c (print_gdb_version): Update copyright year.
6831
6832 2010-01-01 Joel Brobecker <brobecker@adacore.com>
6833
6834 Fix break *FUN'address thread NUM.
6835 * ada-lex.l (task): Expand rule to also match the thread keyword.
6836
6837 2010-01-01 Joel Brobecker <brobecker@adacore.com>
6838
6839 Fix break *FUN'address task NUM.
6840 * ada-lex.l (task): New rule.
6841 * ada-lang.c (valid_task_id): Make sure the Ada task list has
6842 been built before using it.
6843
6844 For older changes see ChangeLog-2009.
6845 \f
6846 Local Variables:
6847 mode: change-log
6848 left-margin: 8
6849 fill-column: 74
6850 version-control: never
6851 coding: utf-8
6852 End: