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