Make -exec-run a proper MI commands.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
115d30f9
VP
12010-02-24 Vladimir Prus <vladimir@codesourcery.com>
2
3 Make -exec-run a proper MI commands.
4
5 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
6 * mi/mi-cmds.c (mi_cmds): Adjust.
7 * mi/mi-main.c (mi_cmd_exec_run): New.
8
06cd862c
PA
92010-02-24 Pedro Alves <pedro@codesourcery.com>
10 Stan Shebs <stan@codesourcery.com>
11
12 * tracepoint.h (set_traceframe_number)
13 (cleanup_restore_current_traceframe): Declare.
14 * tracepoint.c (set_traceframe_number): New.
15 (struct current_traceframe_cleanup): New.
16 (do_restore_current_traceframe_cleanup)
17 (restore_current_traceframe_cleanup_dtor)
18 (make_cleanup_restore_current_traceframe): New.
19 * infrun.c: Include tracepoint.h.
20 (fetch_inferior_event): Switch out and in of tfind mode.
21
ab92d69b
PA
222010-02-24 Pedro Alves <pedro@codesourcery.com>
23
24 * breakpoint.c (breakpoint_init_inferior): Also delete
25 bp_shlib_event breakpoints.
26 * solib-frv.c (enable_break): Remove call to
27 remove_solib_event_breakpoints.
28 * solib-svr4.c (enable_break): Ditto.
29 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
30 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
31 * solib-som.c (som_solib_create_inferior_hook): Ditto.
32 * solib-spu.c (spu_enable_break): Ditto.
33
e707a91d
PA
342010-02-23 Harald Koenig <H.Koenig@science-computing.de>
35
36 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
37
cfce2ea2
PA
382010-02-23 Harald Koenig <H.Koenig@science-computing.de>
39
40 * varobj.c (varobj_update): Avoid non-constants in initializers.
41
05566b3b
TT
422010-02-23 Tom Tromey <tromey@redhat.com>
43
44 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
45 handle big-endian values.
46 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
47
85d721b8
PA
482010-02-22 Pedro Alves <pedro@codesourcery.com>
49
50 PR9605
51
52 gdb/
53 * breakpoint.c (insert_bp_location): If inserting the read
54 watchpoint failed, fallback to an access watchpoint.
55 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
56 if the value changed, if not watching the same memory for writes.
57 (watchpoint_locations_match): Add comment.
58 (update_global_location_list): Copy the location's watchpoint type.
59 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
60 handle read watchpoints here.
61 (i386_insert_watchpoint): Read watchpoints aren't supported.
62 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
63 packets.
64 * target.h (target_insert_watchpoint): Update description.
65
48ea67a7
TT
662010-02-19 Tom Tromey <tromey@redhat.com>
67
68 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
69 * m2-typeprint.c (m2_print_type): Update.
70 * gdbtypes.c (recursive_dump_type): Update.
71 (copy_type_recursive): Update.
72 * c-typeprint.c (c_type_print_varspec_prefix): Update.
73 (c_type_print_base): Update.
74 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
75 Remove.
76 (struct cplus_struct_type) <ntemplate_args>: Remove.
77 <struct template_arg>: Remove.
78 <is_dynamic>: Move earlier.
79 (TYPE_TEMPLATE_ARGS): Remove.
80 (TYPE_NTEMPLATE_ARGS): Remove.
81 (TYPE_TEMPLATE_ARG): Remove.
82
48e32051
TT
832010-02-19 Tom Tromey <tromey@redhat.com>
84
85 PR c++/8693, PR c++/9496:
86 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
87 * c-exp.y (lex_one_token): Rename from yylex. Don't call
88 write_dollar_variable. Don't try to classify NAME tokens.
89 (token_and_value): New type.
90 (token_fifo, popping, name_obstack): New globals.
91 (classify_name): New function.
92 (classify_inner_name): Likewise.
93 (yylex): Likewise.
94 (VARIABLE): Now has type sval.
95 (exp : VARIABLE): Call write_dollar_variable.
96 (qualified_name): Use TYPENAME, not typebase. Add production for
97 multiple "::" instances.
98 (variable): Use name_not_typename.
99 (qualified_type): Remove.
100 (typebase): Update.
101
672d9c23
JK
1022010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
103
104 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
105 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
106 found by bfd_get_section_by_name.
107 * symfile.h (struct section_addr_info) <sectindex>: New comment.
108
bfbf3774
JB
1092010-02-19 Joel Brobecker <brobecker@adacore.com>
110
111 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
112 7.0 section" into "Changes in 7.1".
113
6756b09b 1142010-02-19 Joel Brobecker <brobecker@adacore.com>
115
116 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
117 * version.in: Bump version to 7.1.50.20100219-cvs.
118
202b96c1
PA
1192010-02-18 Harald Koenig <H.Koenig@science-computing.de>
120
121 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
122 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
123
de2e5182
TT
1242010-02-17 Tom Tromey <tromey@redhat.com>
125
126 * NEWS: Add Python API Improvements section.
127
7280022e
DJ
1282010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
129
130 * NEWS: Correct typo.
131
6f451e5e
TT
1322010-02-17 Tom Tromey <tromey@redhat.com>
133
134 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
135
012836ea
JK
1362010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
137
138 * symfile.c (build_section_addr_info_from_objfile): Include sections
139 only if they are SEC_ALLOC or SEC_LOAD.
140
d182d057
L
1412010-02-17 H.J. Lu <hongjiu.lu@intel.com>
142
143 PR shlibs/11293
144 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
145 of ULONGEST for address size.
146
4eef138c
TT
1472010-02-17 Tom Tromey <tromey@redhat.com>
148
149 * NEWS: Add C++ improvements section.
150
548a926a
UW
1512010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
152
153 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
154 PyThreadState_Swap): Avoid "statement with no effect" warning.
155
ad3a0e5b
JK
1562010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
157
158 * solib-svr4.c (enable_break <target_auxv_search>): New variable
159 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
160
243e2c5d
TG
1612010-02-17 Tristan Gingold <gingold@adacore.com>
162 Petr Hluzín <petr.hluzin@gmail.com>
163
164 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
165 gdb_assert. Fix info->size for SIG prologue.
166
275f2e57
DJ
1672010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
168
169 * infcmd.c (show_inferior_tty_command): Check for NULL.
170 Correct output message.
171
791dfb64
DJ
1722010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
173
174 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
175 FUNCTION contains parentheses. Improve removal of a trailing
176 single quote.
177
14d1346b
DJ
1782010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
179
180 * gcore.c (do_bfd_delete_cleanup): New function.
181 (gcore_command): Use it. Discard the cleanup after success.
182 (gcore_copy_callback): Delete dead code.
183
e76ab67f
DJ
1842010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
185
186 * symfile.c (addr_info_make_relative): Always use
187 find_lowest_section.
188
71dee663
SW
1892010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
190
191 * NEWS: Added entry for namespace fixes.
192
a9854bd5
TT
1932010-02-15 Tom Tromey <tromey@redhat.com>
194
195 * dwarf2read.c (guess_structure_name): Allocate name on the
196 objfile obstack.
197
fd9e29b5
TT
1982010-02-15 Tom Tromey <tromey@redhat.com>
199
200 * c-typeprint.c (c_type_print_base): Reverse order of test.
201
4e1fc9c9
JK
2022010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
203
204 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
205 initialize it from ELF BFD. Extend the prelink condition by it.
206
74164c56
JK
2072010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
208
209 * defs.h (parse_pid_to_attach): New.
210 * utils.c (parse_pid_to_attach): New.
211 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
212 * gnu-nat.c (gnu_attach): Likewise.
213 * nto-procfs.c (procfs_attach): Likewise.
214 * procfs.c (procfs_attach): Likewise.
215 * windows-nat.c (windows_attach): Likewise.
216 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
217 * inf-ttrace.c (inf_ttrace_attach): Likewise.
218 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
219 check.
220
bf6adea8
MM
2212010-02-14 Masaki Muranaka <monaka@monami-software.com>
222
223 * MAINTAINERS: Add myself for write after approval privileges.
224
28f34a8f
JK
2252010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
226
227 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
228 block.
229
701ed6dc
JK
2302010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
231
232 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
233 only if INFO_VERBOSE.
234
e5829bee
MS
2352010-02-12 Tomas Holmberg <th@virtutech.com>
236
237 * mi/mi-main.c: Added the --reverse flag to the following MI
238 commands: exec-continue, exec-finish, exec-next, exec-step,
239 exec-next-instruction, exec-step-instruction. This is to
240 support reverse execution over the MI interface to gdb.
241
081dfbf7
PA
2422010-02-12 Pedro Alves <pedro@codesourcery.com>
243
244 * tracepoint.c (_initialize_tracepoint): Specify that the address
245 range of `tfind outsize' is exclusive, and that the address range
246 of `tfind range' is inclusive, in the commands' help strings.
247
ecc13e53
JB
2482010-02-12 Joel Brobecker <brobecker@adacore.com>
249
250 Spurious "dll not found" error messages on x64-windows.
251 * windows-nat.c: Add include of complaints.h.
252 (handle_unload_dll): Change dll-not-found error into a complaint.
253
15c3d785
PA
2542010-02-12 Pedro Alves <pedro@codesourcery.com>
255
256 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
257 bp_tracepoint and bp_fast_tracepoint, not
258 bp_loc_software_breakpoint.
259 (update_global_location_list): Tracepoints are never duplicates of
260 anything.
261
fd9b8c24
PA
2622010-02-12 Pedro Alves <pedro@codesourcery.com>
263
264 * breakpoint.c (break_command_really): Change return type to int.
265 Return false if no breakpoint was created, true otherwise.
266 (trace_command): Don't set the tracepoint count if no tracepoint
267 was created.
268 (ftrace_command): Ditto.
269 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
270 created in the breakpoints table.
271
5c0d192f
JK
2722010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
273 Ulrich Weigand <uweigand@de.ibm.com>
274
275 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
276
5d5b640e
PA
2772010-02-11 Pedro Alves <pedro@codesourcery.com>
278
279 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
280 the offset value isn't of integral type.
281
e5a0a904
JK
2822010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
283
284 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
285 New.
286
be636754
PA
2872010-02-11 Pedro Alves <pedro@codesourcery.com>
288
289 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
290 non-subscriptable types.
291 * valarith.c (binop_types_user_defined_p): New, abstracted out
292 from ...
293 (binop_user_defined_p): ... this.
294 * value.h (binop_types_user_defined_p): Declare.
295
10ef8d6a
PA
2962010-02-11 Pedro Alves <pedro@codesourcery.com>
297
298 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
299 Merge uploaded TSVs before merging uploaded tracepoints.
300
b1028c8e
PA
3012010-02-11 Pedro Alves <pedro@codesourcery.com>
302
303 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
304
7a93fb82 3052010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 306
7a93fb82
VP
307 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
308 whitespace character after a dot in comment.
309 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
310 Likewise.
311 (list_args_or_locals): For the 'all' (that is
312 -stack-list-variables) case, always output list of tuples.
313 Output 'arg' field if variable is argument.
84d90c10 314
92981e24
TT
3152010-02-10 Tom Tromey <tromey@redhat.com>
316
317 * parser-defs.h (parser_debug): Declare.
318 * parse.c (_initialize_parse): Install "debug parser" set/show
319 command.
320 (parser_debug): New global.
321 (show_parserdebug): New function.
322 * c-exp.y (c_parse): Set yydebug.
323
9fd3625f
L
3242010-02-10 H.J. Lu <hongjiu.lu@intel.com>
325
326 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
327 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
328 (tdesc_predefined_types): Add i387_ext, i386_eflags and
329 i386_mxcsr.
330 (tdesc_find_type): New.
331 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
332 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
333
334 * target-descriptions.h (tdesc_find_type): New.
335
2fe842e5
MS
3362010-02-10 Michael Snyder <msnyder@vmware.com>
337
338 * gdb-gdb.py: Comment fix.
339
f18b4cab
TG
3402010-02-09 Tristan Gingold <gingold@adacore.com>
341
342 * machoread.c (macho_symfile_relocate): New function.
343 (macho_sym_fns): Use macho_symfile_relocate instead of
344 default_symfile_relocate.
345 (macho_oso_data): New type.
346 (current_oso): New variable.
347 (macho_add_oso_symfile): Do not compute section_addr_info, but
348 instead set vma of sections.
349 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
350 Set and clear current_oso.
351
31dbc1c5
JB
3522010-02-09 Joel Brobecker <brobecker@adacore.com>
353
354 Wrong type description for tagged type parameter.
355 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
356 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
357 reference to a tagged type.
358
399f313b
TG
3592010-02-09 Tristan Gingold <gingold@adacore.com>
360
361 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
362 brothers of the parent.
363
714f19d5
TT
3642010-02-08 Tom Tromey <tromey@redhat.com>
365
366 PR c++/8017:
367 * value.h: Update.
368 * valops.c (search_struct_field): Make 'name' const.
369 (search_struct_method): Likewise.
370 (find_method_list): Make 'method' const.
371 (value_struct_elt): Make 'name' and 'err' const.
372 (value_find_oload_method_list): Make 'method' const.
373 (find_overload_match): Make 'name' const.
374 * eval.c (evaluate_subexp_standard): New locals function,
375 function_name.
376 <OP_FUNCALL>: Handle OP_SCOPE specially.
377
de0a0249
UW
3782010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
379
380 * infrun.c (handle_inferior_event): Do not look up regcache
381 for exited processes.
382
83b10087
CM
383Mon Feb 8 13:17:10 2010 Chris Moller <moller@mollerware.com>
384
385 PR gdb/10728
386 * valarith.c (value_ptrdiff): Added a test for a zero type length,
387 warn if found, and assume length = 1.
388
99903ae3
CM
3892010-02-08 Chris Moller <cmoller@redhat.com>
390
391 PR gdb/9067
392 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
393 cp_print_static_field) Fix use of obstacks.
394
e3e9f5a2
PA
3952010-02-08 Pedro Alves <pedro@codesourcery.com>
396
397 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
398 resumed LWPs as resumed.
399 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
400 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
401 of throwing an internal error. If an LWP of a process we're not
402 waiting for reports a signal, don't force collecting a SIGSTOP,
403 and if it was breakpoint hit in non-stop mode, cancel it. Don't
404 go through all LWPs cancelling breakpoints in non-stop mode.
405 (resume_stopped_resumed_lwps): New.
406 (linux_nat_wait): Use it.
407
46763423
L
4082010-02-07 H.J. Lu <hongjiu.lu@intel.com>
409
410 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
411 i386/amd64 and i386/amd64-linux.
412 (i386/i386-expedite): New.
413 (i386/i386-linux-expedite): Likewise.
414 (i386/amd64-expedite):Likewise.
415 (i386/amd64-linux-expedite): Likewise.
416 ($(outdir)/i386/i386-linux.dat): Likewise.
417 ($(outdir)/i386/amd64.dat): Likewise.
418 ($(outdir)/i386/amd64-linux.dat): Likewise.
419
420 * features/i386/32bit-core.xml: New.
421 * features/i386/32bit-linux.xml: Likewise.
422 * features/i386/32bit-sse.xml: Likewise.
423 * features/i386/64bit-core.xml: Likewise.
424 * features/i386/64bit-linux.xml: Likewise.
425 * features/i386/64bit-sse.xml: Likewise.
426 * features/i386/i386-linux.xml: Likewise.
427 * features/i386/i386.xml: Likewise.
428 * features/i386/amd64-linux.xml: Likewise.
429 * features/i386/amd64.xml: Likewise.
430 * features/i386/i386-linux.c: Likewise.
431 * features/i386/i386.c: Likewise.
432 * features/i386/amd64-linux.c: Likewise.
433 * features/i386/amd64.c: Likewise.
434
82856980
SW
4352010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
436
437 PR c++/7935:
438 * cp-support.h: Added char* alias element to using_direct data
439 struct.
440 (cp_add_using): Added char* alias argument.
441 (cp_add_using_directive): Ditto.
442 * cp-namespace.c: Updated with the above changes.
443 (cp_lookup_symbol_imports): Check for aliases.
444 * dwarf2read.c (read_import_statement): Figure out local alias
445 for the import and pass it on to cp_add_using.
446 (read_namespace): Pass alias argument to cp_add_using.
447
d18b8b7a
HZ
4482010-02-05 Hui Zhu <teawater@gmail.com>
449
450 * defs.h (gdb_bfd_errmsg): New extern.
451 * exec.c (exec_file_attach): Change bfd_errmsg to
452 gdb_bfd_errmsg.
453 * utils.c (AMBIGUOUS_MESS1): New macro.
454 (AMBIGUOUS_MESS2): New macro.
455 (gdb_bfd_errmsg): New function.
456
48379de6
DE
4572010-02-04 Doug Evans <dje@google.com>
458
459 * solib-svr4.c (enable_break): Add comment.
460
4ee73e90
AG
4612010-02-04 Anthony Green <green@moxielogic.com>
462
463 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
464 gracefully.
465
1a334831
TT
4662010-02-04 Tom Tromey <tromey@redhat.com>
467
468 * valops.c (search_struct_field): Account for
469 value_embedded_offset. Fix check for virtual base past the end of
470 the object. Use value_copy when making a slice of the value.
471
1180b2c8
L
4722010-02-04 H.J. Lu <hongjiu.lu@intel.com>
473
474 PR tui/9622
475 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
476 only if gdb_stdout is a tty.
477
c3f08eb7
L
4782010-02-04 H.J. Lu <hongjiu.lu@intel.com>
479
480 * target-descriptions.c: Include "osabi.h".
481 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
482 OSABI.
483
2d33f7b8
TG
4842010-02-04 Tristan Gingold <gingold@adacore.com>
485
486 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
487 (macho_symtab_read): Adjust calls to macho_add_oso.
488 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
489 (macho_symfile_read): Adjust call to macho_oso_symfile.
490 (macho_new_init): Move this function after declarations.
491 (macho_symfile_init): Ditto.
492 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
493 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
494
11334b82
VP
4952010-02-04 Vladimir Prus <vladimir@codesourcery.com>
496
497 Include MI command in remotelog.
498
499 * mi/mi-main.c (mi_execute_command): Call target_log_command.
500
ff97be06
L
5012010-02-03 H.J. Lu <hongjiu.lu@intel.com>
502
503 * remote.c (remote_state): Remove gdbarch.
504 (init_remote_state): Don't set gdbarch.
505 (remote_query_supported): Pass target_gdbarch instead of
506 rs->gdbarch to gdbarch_qsupported.
507
75cebea9
L
5082010-02-03 H.J. Lu <hongjiu.lu@intel.com>
509
510 * gdbarch.sh: Add qsupported.
511
512 * gdbarch.c: Regenerated.
513 * gdbarch.h: Likewise.
514
515 * remote.c (remote_state): Add gdbarch.
516 (init_remote_state): Set gdbarch.
517 (remote_query_supported): Support gdbarch_qsupported.
518
c1dec97b
DJ
5192010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
520
521 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
522 __FreeBSD_kernel_version.
523
ac8035ab
TG
5242010-02-03 Tristan Gingold <gingold@adacore.com>
525
526 * symfile.h (struct sym_fns): Add sym_relocate field.
527 (default_symfile_relocate): New prototype.
528 (symfile_relocate_debug_section): First argument is now an objfile.
529 * symfile.c (default_symfile_relocate): Rename from
530 symfile_relocate_debug_section, first argument is now an objfile.
531 (symfile_relocate_debug_section): New function.
532 * coffread.c (coff_sym_fns): Set sym_relocate field.
533 * somread.c (som_sym_fns): Ditto.
534 * mipsread.c (ecoff_sym_fns): Ditto.
535 * machoread.c (macho_sym_fns): Ditto.
536 * elfread.c (elf_sym_fns): Ditto.
537 * dwarf2read.c (dwarf2_read_section): Ditto.
538 * xcoffread.c (xcoff_sym_fns): Ditto.
539 * dbxread.c (aout_sym_fns): Ditto.
540 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
541 (elfstab_build_psymtabs): Ditto.
542
be52b756
L
5432010-02-03 H.J. Lu <hongjiu.lu@intel.com>
544
545 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
546
9c3c02fd
TT
5472010-02-02 Tom Tromey <tromey@redhat.com>
548
549 * valops.c (value_cast_structs): Try downcasting using the RTTI
550 type.
551
f23f4c59
TT
5522010-02-02 Tom Tromey <tromey@redhat.com>
553
554 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
555 (gnuv2_baseclass_offset): Now static.
556 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
557 * gnu-v2-abi.h: Remove.
558
0cc2414c
TT
5592010-02-02 Tom Tromey <tromey@redhat.com>
560
561 * m2-typeprint.c (m2_record_fields): Don't use
562 TYPE_DECLARED_TYPE.
563 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
564 (struct main_type) <flag_declared_class>: New field.
565 (struct cplus_struct_type) <declared_type>: Remove.
566 <ntemplate_args>: Move earlier.
567 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
568 (DECLARED_TYPE_TEMPLATE): Remove.
569 (TYPE_DECLARED_TYPE): Remove.
570 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
571 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
572 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
573 TYPE_DECLARED_TYPE.
574
edf3d5f3
TT
5752010-02-02 Tom Tromey <tromey@redhat.com>
576
577 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
578 * valops.c (search_struct_field): Compute nbases after calling
579 CHECK_TYPEDEF.
580 (check_field): Call CHECK_TYPEDEF.
581 * cp-valprint.c (cp_print_value): Pass correct address to
582 baseclass_offset. Fix check for virtual base past the end of the
583 object. Don't offset address passed to cp_print_value_fields or
584 apply_val_pretty_printer.
585 (cp_print_value_fields): Fix call to val_print.
586 (cp_print_value_fields_rtti): New function.
587 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
588 * p-valprint.c (pascal_object_print_value_fields): Fix call to
589 val_print.
590 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
591 offset to address.
592 * language.h (struct language_defn) <la_val_print>: Document.
593 * c-lang.h (cp_print_value_fields_rtti): Declare.
594
e4b7f41c
JK
5952010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
596
597 PR libc/11214:
598 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
599 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
600 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
601
7618e12b
DJ
6022010-02-01 Michael Matz <matz@suse.de>
603 Daniel Jacobowitz <dan@codesourcery.com>
604
e4b7f41c 605 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
606 functions use a frame pointer.
607
b381ea14
JK
6082010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
609
610 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
611 by a conditional setting DYN_ADDR. Use DYN_ADDR.
612 * config/djgpp/fnchange.lst: Add translations for
613 symbol-without-target_section.exp and symbol-without-target_section.c.
614
0e05dfcb
DJ
6152010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
616
617 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
618 (remote_breakpoint_for_pc): Correct invalid_p check.
619 * gdbarch.c: Regenerated.
620
f9d67f43
DJ
6212010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
622
623 * arm-tdep.c (arm_find_mapping_symbol): New function, from
624 arm_pc_is_thumb.
625 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
626 (extend_buffer_earlier): New function.
627 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
628 (arm_adjust_breakpoint_address): New function.
629 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
630
177321bd
DJ
6312010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
632
633 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
634 (arm_linux_thumb2_le_breakpoint): New constants.
635 (arm_linux_init_abi): Set thumb2_breakpoint and
636 thumb2_breakpoint_size.
637 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
638 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
639 Implement support for single stepping through IT blocks if
640 a 32-bit Thumb breakpoint instruction is available.
641 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
642 is available, use it when needed.
643 (arm_remote_breakpoint_from_pc): New function.
644 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
645 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
646 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
647
a1dcb23a
DJ
6482010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
649
650 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
651 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
652 * gdbarch.c, gdbarch.h: Regenerated.
653 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
654 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
655 gdbarch_remote_breakpoint_from_pc.
656
2b009048
DJ
6572010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
658
659 * infrun.c (prepare_to_proceed): Handle other signals which might
660 match a breakpoint.
661 (handle_inferior_event): Move the check for unusual breakpoint
662 signals earlier.
663
e4e2711a
JB
6642010-01-29 Paul Hilfinger <hilfinger@adacore.com>
665
666 amd64 - function returning record with field straddling 2 registers.
667 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
668 a record of length <= 16 in which a field straddles the two
669 eightbytes.
670
cba6fab5
JB
6712010-01-29 Joel Brobecker <brobecker@adacore.com>
672
673 Implement return values on amd64-windows.
674 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
675 (amd64_windows_return_value): New function.
676 (amd64_windows_init_abi): Call set_gdbarch_return_value with
677 amd64_windows_return_value.
678
3af6ddfe
JB
6792010-01-29 Joel Brobecker <brobecker@adacore.com>
680
681 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 682 parameter registers.
3af6ddfe
JB
683 * i386-tdep.h (struct gdbarch_tdep): Add new field
684 integer_param_regs_saved_in_caller_frame.
685 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
686 tdep->integer_param_regs_saved_in_caller_frame to 1.
687 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
688 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
689
80d19a06
JB
6902010-01-29 Joel Brobecker <brobecker@adacore.com>
691
692 amd64-windows: memory args passed by pointer during function calls.
693 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
694 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
695 where tdep->memory_args_by_pointer is non-zero.
696 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
697 tdep->memory_args_by_pointer to 1.
698
ba581dc1
JB
6992010-01-29 Joel Brobecker <brobecker@adacore.com>
700
4966b6c2 701 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
702 * i386-tdep.h (enum amd64_reg_class): New, moved here from
703 amd64-tdep.c.
704 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
705 call_dummy_integer_regs, and classify.
706 * amd64-tdep.h (amd64_classify): Add declaration.
707 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
708 (amd64_reg_class): Delete, moved to i386-tdep.h.
709 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
710 Replace call to amd64_classify by call to tdep->classify.
711 (amd64_push_arguments): Get the list of registers to use for
712 passing integer parameters from the gdbarch tdep structure,
713 rather than using a hardcoded one. Replace calls to amd64_classify
714 by calls to tdep->classify.
715 (amd64_push_dummy_call): Get the register number used for
716 the "hidden" argument from tdep->call_dummy_integer_regs.
717 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
718 and tdep->call_dummy_integer_regs. Set tdep->classify.
719 * amd64-windows-tdep.c: Add include of gdbtypes.h.
720 (amd64_windows_dummy_call_integer_regs): New static global.
721 (amd64_windows_classify): New function.
722 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
723 tdep->call_dummy_integer_regs and tdep->classify.
724
d37346f0
DJ
7252010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
726
727 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
728 for the new regcache. All callers updated.
729 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
730 (get_thread_arch_regcache): Do not set aspace here.
731 * regcache.h (regcache_xmalloc): Update declaration.
732
733 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
734 regcache_xmalloc updated.
735
7434dadd
JB
7362010-01-28 Joel Brobecker <brobecker@adacore.com>
737
738 Another -Wunused-function error in procfs.c (sparc-solaris)
739 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
740 Only define if SYS_syssgi is defined.
741 (remove_dbx_link_breakpoint): Delete declaration. Move up.
742 (dbx_link_addr, insert_dbx_link_bpt_in_file)
743 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
744 is itself defined.
745
16d905e2
CF
7462010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
747
748 * windows-nat.c (windows_initialization_done): New variable.
749 (get_windows_debug_event): Issue error when process dies before
750 completely initializing.
751 (do_initial_windows_stuff): Set flag to indicate when we are done with
752 the initial steps of attaching to the child.
753
cd55e50f
JK
7542010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
755
756 * symtab.h (struct symbol <symtab>): New comment on NULL values.
757
99cc78aa
DE
7582010-01-27 Doug Evans <dje@google.com>
759
4c7dcb84
DE
760 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
761
99cc78aa
DE
762 * breakpoint.c (bpstat_stop_status): Delete useless code.
763
52334bf5
JK
7642010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
765
766 * printcmd.c (display_uses_solib_p): Remove variable section. Access
767 objfile via SYMBOL_SYMTAB.
768
708ead4e
TT
7692010-01-26 Tom Tromey <tromey@redhat.com>
770
771 PR exp/7643:
772 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
773 coerce_array on result.
774
b14e635e
SW
7752010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
776
777 * cp-namespace.c (cp_lookup_symbol_namespace): Added
778 search_parent argument.
779 (cp_add_using): Initialize 'searched' field.
780 (reset_directive_searched): New function.
781 * cp-support.h: Add 'searched' field to using_direct struct.
782 (cp_lookup_symbol_imports): Ditto.
783 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
784 Perform recursive search.
785 Implement non parent search.
786 * valops.c (value_maybe_namespace_elt): Updated.
787
8540c487
SW
7882010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
789
790 PR gdb/10929:
791 * dwarf2read.c (read_lexical_block_scope): Create blocks for
792 scopes which contain using directives even if they contain no
793 declarations.
794 * symtab.c (lookup_symbol_aux): Pass lowest level block to
795 la_lookup_symbol_nonlocal.
796 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
797 cp_lookup_symbol_namespace.
798 (cp_lookup_symbol_namespace): Perform an import lookup at every
799 block level.
800 (cp_lookup_symbol_imports): New function.
801 (cp_lookup_symbol_in_namespace): New function.
802
421d5d99
TT
8032010-01-25 Tom Tromey <tromey@redhat.com>
804
805 PR gdb/11049:
806 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
807 result.
808
6bcc772d
RO
8092010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
810
811 * configure.ac: Only use host_os part when disabling TUI on osf.
812 Use test to check variables, prefix strings with x.
813 * configure: Regenerate.
814
815 * solib-osf.c (osf_current_sos): Initialize tail.
816
1c1238a5
TG
8172010-01-25 gingold <gingold@adacore.com>
818
819 * windows-nat.c (windows_continue): Use %x to print thread id.
820 (get_windows_debug_event): Ditto.
821
0b92b5bb
TT
8222010-01-22 Tom Tromey <tromey@redhat.com>
823
824 PR symtab/11199:
825 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
826 type and arguments. Use smash_to_methodptr_type.
827 (read_structure_type): Call quirk_gcc_member_function_pointer
828 later.
829 * gdbtypes.h (smash_to_methodptr_type): Declare.
830 * gdbtypes.c (smash_to_methodptr_type): New function.
831 (lookup_methodptr_type): Use it.
832
0d5392b8
TT
8332010-01-21 Tom Tromey <tromey@redhat.com>
834
835 PR symtab/11198:
836 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
837 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
838 * glibc-tdep.c (find_minsym_and_objfile): Remove.
839 (glibc_skip_solib_resolver): Use
840 lookup_minimal_symbol_and_objfile.
841
e6d088ec
KT
8422010-01-21 Kai Tietz <kai.tietz@onevision.com>
843
844 * inflow.c (check_syscall): Guard by #if clause for GO32 and
845 WIN32 targets.
846
b966cb8a
TT
8472010-01-20 Tom Tromey <tromey@redhat.com>
848
849 PR backtrace/10770:
850 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
851 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
852 * dwarf2expr.c (new_dwarf_expr_context): Allocate
853 dwarf_stack_values, not CORE_ADDRs.
854 (execute_stack_op): Change DW_OP_div and comparison operators to
855 use signed operands.
856
3f81c18a
VP
8572010-01-20 Vladimir Prus <vladimir@codesourcery.com>
858
859 Per-inferior args and tty and environment.
860
861 * infcmd.c (inferior_args): Rename to ...
862 (inferior_args_scratch): ... this.
863 (inferior_io_terminal): Rename to ...
864 (inferior_io_terminal_scratch): ... this.
865 (inferior_argc, inferior_argv): Remove.
866 (set_inferior_io_terminal, get_inferior_io_terminal): Store
867 inside current_inferior().
868 (set_inferior_tty_command, show_inferior_tty_command): New.
869 (get_inferior_args, set_inferior_args): Store inside
870 current_inferior().
871 (notice_args_set): Likewise and rename to...
872 (set_args_command): ... this.
873 (set_inferior_args_vector): Likewise.
874 (notice_args_read): Rename to...
875 (show_args_command): ...new.
876 (tty_command): Remove.
877 (run_command_1): Don't free old args, as they are freed by
878 set_inferior_arg now.
879 (run_no_args_command): Likewise.
880 (inferior_environ): Remove.
881 (run_command_1): Use environment of the current inferior.
882 (environment_info, set_environment_command)
883 (unset_environment_command, path_info, path_command): Likewise.
884 (_initialize_infcmd): Adjust for function and variable renames.
885 Do not init inferior_environ.
886 * inferior.h (set_inferior_arg): Adjust prototype.
887 (struct inferior): New fields args, argc, argv, terminal, environment.
888 (inferior_environ): Remove declaration.
889 * inferior.c (free_inferior): Free new fields.
890 (add_inferior_silent): Initialize 'environment' field.
891 * main.c (captured_main): Set arguments only after the initial
892 inferior has been created. Set set_inferior_io_terminal,
893 not tty_command.
894 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
895 inferior.
896 (_initialize_mi_cmd_env): Adjust for disappearance of global
897 inferior_environ.
898 * solib.c (solib_find): Use environment of the current inferior.
899
d8b65138
JK
9002010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
901
902 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
903 HAVE_PYTHON.
904 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
905
692465f1
JB
9062010-01-20 Joel Brobecker <brobecker@adacore.com>
907
908 Get rid of ada-lang.c:function_name_from_pc.
909 * ada-lang.c: Add "stack.h" #include.
910 (function_name_from_pc): Delete.
911 (is_known_support_routine): Replace call to function_name_from_pc
912 by call to find_frame_funname.
913 (ada_unhandled_exception_name_addr_from_raise): Likewise.
914
95519e0e
TT
9152010-01-19 Tom Tromey <tromey@redhat.com>
916
917 PR c++/11026:
918 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
919 objfile obstack.
920
95c11dc7
TT
9212010-01-19 Tom Tromey <tromey@redhat.com>
922
923 * top.c (stop_sig, float_handler, do_nothing): Remove.
924
a0f49112
JK
9252010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
926
927 * breakpoint.c (watchpoint_check): Check the call
928 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
929 Extend the comment.
930 * config/djgpp/fnchange.lst: Add translations for
931 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
932 watchpoint-cond-gone-stripped.c.
933
ceeb3d5a
TT
9342010-01-19 Tom Tromey <tromey@redhat.com>
935
936 PR c++/8000:
937 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
938 into parent scope, and enumerator into grandparent scope.
939
2b71fc8e
JB
9402010-01-19 Joel Brobecker <brobecker@adacore.com>
941
942 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
943
03564ed9
JB
9442010-01-19 Joel Brobecker <brobecker@adacore.com>
945
946 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
947 i[34567]86-*-solaris2.1[0-9]*.
948 * configure.tgt: Likewise.
949
fb2e7cb4
JB
9502010-01-19 Joel Brobecker <brobecker@adacore.com>
951
952 * NEWS: Document the source command enhancement allowing it
953 to load Python scripts. Document the "set/show script-extension"
954 commands.
955
1cb5e2a4
JB
9562010-01-19 Joel Brobecker <brobecker@adacore.com>
957
958 Add -Wunused-function to compile flags.
959 * configure.ac: Add -Wunused-function to build_warnings.
960 * configure: Regenerate.
961
0ec6cd0c
JB
9622010-01-19 Joel Brobecker <brobecker@adacore.com>
963
964 "delete" ada-lex.c:input function, not used.
965 * ada-lex.l: #define YY_NO_INPUT.
966
b74845da
JB
9672010-01-19 Joel Brobecker <brobecker@adacore.com>
968
969 Delete free_named_symtabs and associated cleanup.
970 * symfile.h (free_named_symtabs): Delete declaration.
971 * symfile.c: Remove some commented out code (clear_symtab_users_once).
972 (cashier_psymtab): Comment function out.
973 Delete declaration.
974 (free_named_symtabs): Delete.
975 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
976 * dbxread.c (end_psymtab): Likewise.
977 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
978 * exec.c (exec_close_1): Ditto.
979 * xcoffread.c (xcoff_end_psymtab): Likewise.
980
65c06092
JB
9812010-01-19 Joel Brobecker <brobecker@adacore.com>
982
983 * stack.c (print_block_frame_labels): Comment function out.
984
d5cd6034
JB
9852010-01-19 Joel Brobecker <brobecker@adacore.com>
986
987 Delete unused or undefined functions.
988 * breakpoint.c (ep_parse_optional_filename): Delete.
989 * dcache.c (dcache_write_line): Remove declaration.
990 * infrun.c (build_infrun): Remove declaration.
991 * tracepoint.c (tracepoint_save_command): Remove declaration.
992 * linux-nat.c (init_lwp_list): Delete. No longer used.
993 * event-loop.c (check_async_signal_handlers): Delete declaration.
994 * infrun.c (init_execution_control_state): Delete.
995 (proceed): Update comment to avoid mentioning
996 init_execution_control_state.
997 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
998 * ada-lang.c (ada_to_static_fixed_value): Delete.
999 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
1000 * cp-namespace.c (cp_copy_usings): Delete.
1001 * xml-syscall.c (xml_number_of_syscalls): Delete.
1002 * progspace.c (find_program_space_by_num): Delete.
1003 * inflow.c (handle_sigio): Delete declaration.
1004 * hppa-tdep.c (hppa_alignof): Delete.
1005 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
1006 (mipsnbsd_core_osabi_sniffer): Delete.
1007
4e8f195d
TT
10082010-01-18 Tom Tromey <tromey@redhat.com>
1009
1010 PR c++/9680:
1011 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
1012 (CONST_CAST): New tokens.
1013 (exp): Add new productions.
1014 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
1015 reinterpret_cast.
1016 (is_cast_operator): New function.
1017 (yylex): Handle cast operators specially.
1018 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
1019 UNOP_REINTERPRET_CAST>: New cases.
1020 * expprint.c (print_subexp_standard): Likewise.
1021 (op_name_standard): Likewise.
1022 (dump_subexp_body_standard): Likewise.
1023 * parse.c (operator_length_standard): Likewise.
1024 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
1025 UNOP_REINTERPRET_CAST.
1026 * gdbtypes.c (class_types_same_p): New function.
1027 (is_ancestor): Use it.
1028 (is_public_ancestor): New function.
1029 (is_unique_ancestor_worker): Likewise.
1030 (is_unique_ancestor): Likewise.
1031 * gdbtypes.h (class_types_same_p, is_public_ancestor)
1032 (is_unique_ancestor): Declare.
1033 * valops.c (value_reinterpret_cast): New function.
1034 (dynamic_cast_check_1): Likewise.
1035 (dynamic_cast_check_2): Likewise.
1036 (value_dynamic_cast): Likewise.
1037 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
1038
d9c57d9f
JB
10392010-01-18 Joel Brobecker <brobecker@adacore.com>
1040
1041 Fix build failure when building without Python support.
1042 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
1043 is not defined.
1044
f80d3ff2
JB
10452010-01-18 Joel Brobecker <brobecker@adacore.com>
1046
1047 Use XVS field type instead of doing a parallel lookup.
1048 * ada-lang.c (ada_get_base_type): Follow the XVS field type
1049 if it is a reference type instead of doing a type lookup using
1050 the XVS field name.
1051
5bf03f13
JB
10522010-01-18 Joel Brobecker <brobecker@adacore.com>
1053
1054 Trust PAD types instead of using PAD___XVS.
1055 * ada-lang.c (trust_pad_over_xvs): New static variable.
1056 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
1057 parallel XVS type, follow the XVS type instead of the PAD type.
1058 (unwrap_value): Make sure that there is no parallel XVE type
1059 before returning the value as is.
1060 (set_ada_list, show_ada_list): New static variables.
1061 (set_ada_command, show_ada_command): New functions.
1062 (_initialize_ada_language): Add new "set/show ada" prefix commands.
1063 Add new "set/show ada trust-PAD-over-XVS" setting.
1064
973817a3
JB
10652010-01-18 Tom Tromey <tromey@redhat.com>
1066 Thiago Jung Bauermann <bauerman@br.ibm.com>
1067
1068 Allow "source" to load python scripts.
1069 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
1070 * python/python.c (source_python_script): New function.
1071 * python/python.h (source_python_script): Add declaration.
1072 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
1073 (script_ext_off, script_ext_soft, script_ext_strict)
1074 (script_ext_enums, script_ext_mode): New static constants.
1075 (show_script_ext_mode, find_and_open_script): New functions.
1076 (source_script): Enhance to handle Python scripts.
1077 (init_cli_cmds): Add set/show script-extension commands.
1078
98e03262
SS
10792010-01-16 Stan Shebs <stan@codesourcery.com>
1080
1081 * tracepoint.h (struct trace_status): Use unsigned long long
1082 instead of size_t.
1083 * tracepoint.c (trace_status_command): Fix printf directive.
1084 (trace_save_command): Check fwrite returns, fix printf directive.
1085 (trace_filename): New global.
1086 (tfile_open): Set it, check read returns.
1087 (tfile_close): Free trace_filename.
1088 (tfile_get_traceframe_address): Check read returns.
1089 (tfile_trace_find): Ditto.
1090 (tfile_fetch_registers): Ditto.
1091 (tfile_xfer_partial): Ditto.
1092 (tfile_get_trace_state_variable_value): Ditto.
1093
00bf0b85
SS
10942010-01-15 Stan Shebs <stan@codesourcery.com>
1095
1096 Add trace file support.
1097 * tracepoint.h (enum trace_stop_reason): New enum.
1098 (struct trace_status): New struct.
1099 (parse_trace_status): Declare.
1100 (struct uploaded_tp): Move here from remote.c,
1101 add fields for actions.
1102 (struct uploaded_tsv): New struct.
1103 * tracepoint.c (tfile_ops): New target vector.
1104 (trace_fd): New global.
1105 (tfile_open): New function.
1106 (tfile_close): New function.
1107 (tfile_files_info): New function.
1108 (tfile_get_trace_status): New function.
1109 (tfile_get_traceframe_address): New function.
1110 (tfile_trace_find): New function.
1111 (tfile_fetch_registers): New function.
1112 (tfile_xfer_partial): New function.
1113 (tfile_get_trace_state_variable_value): New function.
1114 (init_tfile_ops): New function.
1115 (_initialize_tracepoint): Call it, add tfile target.
1116 (trace_status): New global.
1117 (current_trace_status): New function.
1118 (trace_running_p): Remove, change all users to get from
1119 current_trace_status()->running.
1120 (get_trace_status): Remove.
1121 (trace_status_command): Call target_get_trace_status directly,
1122 report more detail including tracing stop reasons.
1123 (trace_find_command): Always allow tfind on a file.
1124 (trace_find_pc_command): Ditto.
1125 (trace_find_tracepoint_command): Ditto.
1126 (trace_find_line_command): Ditto.
1127 (trace_find_range_command): Ditto.
1128 (trace_find_outside_command): Ditto.
1129 (trace_frames_offset, cur_offset): Declare as off_t.
1130 (trace_regblock_size): Rename from reg_size, update users.
1131 (parse_trace_status): New function.
1132 (tfile_interp_line): New function.
1133 (disconnect_or_stop_tracing): Ensure current trace
1134 status before asking what to do.
1135 (stop_reason_names): New global.
1136 (trace_save_command): New command.
1137 (get_uploaded_tp): Move here from remote.c.
1138 (find_matching_tracepoint): Ditto.
1139 (merge_uploaded_tracepoints): New function.
1140 (parse_trace_status): Use stop_reason_names.
1141 (_initialize_tracepoint): Define tsave command.
1142 * target.h (target_ops): New fields to_save_trace_data,
1143 to_upload_tracepoints, to_upload_trace_state_variables,
1144 to_get_raw_trace_data, change to_get_trace_status
1145 to take a pointer to a status struct.
1146 (target_save_trace_data): New macro.
1147 (target_upload_tracepoints): New macro.
1148 (target_upload_trace_state_variables): New macro.
1149 (target_get_raw_trace_data): New macro.
1150 * target.c (update_current_target): Add new methods, change
1151 signature of to_get_trace_status.
1152 * remote.c (hex2bin): Make globally visible.
1153 (bin2hex): Ditto.
1154 (remote_download_trace_state_variable): Download name also.
1155 (remote_get_trace_status): Update parameter, use
1156 parse_trace_status.
1157 (remote_save_trace_data): New function.
1158 (remote_upload_tracepoints): New function.
1159 (remote_upload_trace_state_variables): New function.
1160 (remote_get_raw_trace_data): New function.
1161 (remote_start_remote): Use them.
1162 (_initialize_remote_ops): Add operations.
1163 * ax-gdb.c: Include breakpoint.h.
1164 * breakpoint.c (create_tracepoint_from_upload): Use
1165 break_command_really, return tracepoint, warn about unimplemented
1166 parts.
1167 * NEWS: Mention trace file addition.
1168
d904de5b
JK
11692010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1170
1171 Fix compilation warning on gcc-3.4.
1172 * exec.c (print_section_info): Move the `displacement' variable
1173 initialization to its declaration.
1174
64aa9731
JK
11752010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1176
1177 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
1178 comparison.
1179
ca1f5def 11802010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
1181
1182 "info tasks" broken by typedefs in ATCB type definitions.
1183 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
1184 ada_check_typedef before retrieving the length of the type for
1185 regular fields.
1186
12ab9e09
JB
11872010-01-15 Joel Brobecker <brobecker@adacore.com>
1188
1189 Do not use name-based lookup for unconstrained packed arrays.
1190 * ada-lang.c (find_parallel_type_by_descriptive_type):
1191 Limit the fallback to name-based lookups to the case where
1192 the type is a constrained packed array.
1193
c389c3dc
JB
11942010-01-15 Joel Brobecker <brobecker@adacore.com>
1195
1196 Enhance gdb-gdb.py to handle main_type.type_specific.
1197 * gdb-gdb.py: Print the type-specific part of struct main_type.
1198
7991dee7
JK
11992010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1200
1201 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
1202 * configure: Regenerate.
1203 * config.in: Regenerate.
1204 * utils.c: Include sys/resource.h.
1205 (dump_core, can_dump_core): New.
1206 (internal_vproblem): Update the comment. Check can_dump_core while
1207 setting dump_core_p. Replace two abort calls by dump_core calls.
1208
93c26624
JK
12092010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1210 Eli Zaretskii <eliz@gnu.org>
1211
1212 * NEWS: Document the PIE support.
1213
55235ad7
JK
12142010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1215
1216 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
1217 (check_is_pie_binary, _initialize_linux_tdep): Remove.
1218
41752192
JK
12192010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1220
1221 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
1222 Replace exec_entry_point call by bfd_get_start_address.
1223
9f2982ff
JK
12242010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1225
1226 Support Valgrind attachments broken by the PIE support.
1227 * auxv.c: Include gdbcore.h.
1228 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
1229 parameters ops, object and annex. Remove their assertions.
1230 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
1231 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
1232 (memory_xfer_auxv): ... here.
1233 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
1234 memory_xfer_auxv.
1235 * procfs.c (procfs_xfer_partial): Likewise.
1236 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
1237 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
1238 (svr4_solib_create_inferior_hook): Conditionalize the
1239 svr4_relocate_main_executable call.
1240
61f0d762
JK
12412010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1242
1243 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
1244 target_section. Find SECT in current_target_sections, gdb_assert it.
1245 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
1246 New variable abfd.
1247 * symtab.c (lookup_objfile_from_block): Return the binary file instead
1248 of separate debug info file.
1249
51bee8e9
JK
12502010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1251
1252 Support PIEs with no symfile_objfile.
1253 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
1254 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
1255
b8040f19
JK
12562010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1257
1258 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
1259 code part to ...
1260 (svr4_static_exec_displacement): ... a new function.
1261 (svr4_exec_displacement): New function.
1262 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
1263 new_offsets using alloca now. Remove variable old_chain and changed.
1264 Call objfile_relocate unconditionally now.
1265
eb90ce83
DE
12662010-01-14 Doug Evans <dje@google.com>
1267
1268 * gdbtypes.c (arch_flags_type): Fix comment.
1269 * gdbtypes.h (arch_composite_type): Fix comment.
1270
bdfed3bc
TG
12712009-01-14 Tristan Gingold <gingold@adacore.com>
1272
1273 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
1274 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
1275 to symbol_file_add_from_bfd. Add OSO as separate objfile.
1276 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
1277 macho_add_oso_symfile.
1278 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
1279
1596ad23
JB
12802010-01-14 Joel Brobecker <brobecker@adacore.com>
1281
1282 Tru64: Dead threads are never deleted.
1283 * dec-thread.c (dec_thread_ptid_is_alive): New function.
1284 (dec_thread_count_gdb_threads): Fix counter increment.
1285 (dec_thread_add_gdb_thread): Fix *listp increment.
1286 (resync_thread_list): Fix bug in deletion of dead threads that
1287 caused all threads to be deleted, instead of just the dead ones.
1288
be759fcf
PM
12892010-01-13 Phil Muldoon <pmuldoon@redhat.com>
1290
1291 PR python/10705
1292
1293 * python/python-internal.h: Add lazy_string_object_type
1294 definition.
1295 (create_lazy_string_object, gdbpy_initialize_lazy_string)
1296 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
1297 * python/py-value.c (valpy_lazy_string): New function.
1298 (convert_value_from_python): Add lazy string conversion.
1299 * python/py-prettyprint.c (pretty_print_one_value): Check if
1300 return is also a lazy string.
1301 (print_string_repr): Add lazy string printing branch.
1302 (print_children): Likewise.
1303 * python/py-lazy-string.c: New file. Implement lazy strings.
1304 * python/python.c (_initialize_python): Call
1305 gdbpy_initialize_lazy_string.
1306 * varobj.c (value_get_print_value): Add lazy string printing
1307 branch. Account for encoding.
1308 * c-lang.c (c_printstr): Account for new encoding argument. If
1309 encoding is NULL, find encoding suited for type, otherwise use
1310 user encoding.
1311 * language.h (language_defn): Add encoding argument.
1312 (LA_PRINT_STRING): Likewise.
1313 * language.c (unk_lang_printstr): Update to reflect new encoding
1314 argument to language_defn.
1315 * ada-lang.h (ada_printstr): Likewise.
1316 * c-lang.h (c_printstr): Likewise.
1317 * p-lang.h (pascal_printstr);
1318 * f-lang.c (f_printstr): Likewise.
1319 * m2-lang.c (m2_printstr): Likewise.
1320 * objc-lang.c (objc_printstr): Likewise.
1321 * p-lang.c (pascal_printstr): Likewise.
1322 * scm-lang.c (scm_printstr): Likewise.
1323 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
1324 encoding argument.
1325 * ada-valprint.c (ada_printstr): Likewise.
1326 * f-valprint.c (f_val_print): Likewise
1327 * m2-valprint.c (m2_val_print): Likewise.
1328 * p-valprint.c (pascal_val_print): Likewise.
1329 * expprint.c (print_subexp_standard): Likewise.
1330 * valprint.c (val_print_string): Likewise.
1331 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
1332 (SUBDIR_PYTHON_SRCS): Likewise.
1333 (py-lazy-string.o): New rule.
1334
1fe72117 13352010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
1336
1337 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
1338 uninitialized" warning from gcc on local `tree'.
1339
dc146f7c
VP
13402010-01-13 Vladimir Prus <vladimir@codesourcery.com>
1341
1342 Implement core awareness.
1343
1344 * bcache.c (compare_ints): Remove
1345 (print_percentage): Use compare_positive_ints.
1346 * defs.h (compare_positive_ints): Declare.
1347 * linux-nat.h (struct lin_lwp): New field core.
1348 (linux_nat_core_of_thread_1): Declare.
1349 * linux-nat.c (add_lwp): Init the 'core' field.
1350 (linux_nat_wait_1): Record the core.
1351 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
1352 (linux_nat_add_target): Register the above.
1353 * linux-thread-db.c (update_thread_core): New.
1354 (thread_db_find_new_threads): Update core information for
1355 every thread.
1356 * remote.c (struct private_thread_info): New.
1357 (free_private_thread_info, demand_private_info): New.
1358 (PACKET_qXfer_threads, use_osdata_threads): New.
1359 (struct thread_item, threads_parsing_context
1360 (start_thread, end_thread, thread_attributes)
1361 (thread_children, threads_children, threads_elements): New.
1362 (remote_threads_info): Try qXfer:threads before anything
1363 else.
1364 (remote_protocol_packets): Register qXfer:threads.
1365 (remote_open_1): Init use_osdata_threads.
1366 (struct stop_reply): New field 'core'.
1367 (remote_parse_stop_reply): Parse core number.
1368 (process_stop_reply): Record core number.
1369 (remote_xfer_partial): Handle qXfer:threads.
1370 (remote_core_of_thread): New.
1371 (init_remote_ops): Register remote_core_of_thread.
1372 (_initialize_remote): Register qXfer:read.
1373 * target.c (target_core_of_thread): New
1374 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
1375 (struct target_ops): New field to_core_of_threads.
1376 (target_core_of_thread): Declare.
1377 * gdbthread.h (struct thread_info): New field private_dtor.
1378 * thread.c (print_thread_info): Report the core.
1379 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
1380 * utils.c (compare_positive_ints): New.
1381 * features/threads.dtd: New.
1382 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
1383 * mi/mi-main.c (struct collect_cores_data, collect_cores)
1384 (do_nothing, free_vector_of_osdata_items)
1385 (splay_tree_int_comparator, free_splay_tree): New.
1386 (print_one_inferior_data): Implemented printing of selected
1387 inferiors. Collect and print cores.
1388 (output_cores): New.
1389 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
1390 thread groups together with --available.
1391
d30c5336
JK
13922010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1393
1394 * configure: Regenerate (for _STRUCTURED_PROC).
1395
02893727
JB
13962010-01-12 Joel Brobecker <brobecker@adacore.com>
1397
1398 Delete dead function.
1399 * ada-lang.c (extract_string): Delete. No longer used.
1400
46ed2d6f
JB
14012010-01-12 Joel Brobecker <brobecker@adacore.com>
1402
1403 Fix -Wunused warning in dec-thread.c.
1404 * dec-thread.c (dec_thread_count_gdb_threads)
1405 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
1406
606b8d1a
JB
14072010-01-12 Joel Brobecker <brobecker@adacore.com>
1408
1409 * ada-valprint.c (ada_print_floating): Remove trailing space.
1410
b4ba55a1
JB
14112010-01-12 Joel Brobecker <brobecker@adacore.com>
1412
1413 Add support for DW_AT_GNAT_descriptive_type.
1414 * gdbtypes.h (enum type_specific_kind): New enum.
1415 (struct main_type) [type_specific_field]: New component.
1416 [type_specific]: Add new component "gnat_stuff".
1417 (struct gnat_aux_type): New type.
1418 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
1419 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
1420 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
1421 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
1422 (TYPE_SPECIFIC_FIELD): New macros.
1423 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
1424 type does not hold any cplus-specific data.
1425 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
1426 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
1427 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
1428 cplus-specific data.
1429 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
1430 Set new component TYPE_SPECIFIC_FIELD (type).
1431 (gnat_aux_default): New constant.
1432 (allocate_gnat_aux_type): New function.
1433 (init_type): Add initialization the type-specific stuff for
1434 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
1435 (print_gnat_stuff): New function.
1436 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
1437 specific data. Adjust code that prints the contents of the
1438 type-specific union using the TYPE_SPECIFIC_FIELD value.
1439 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
1440 the type cplus stuff for Ada types.
1441 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
1442 Error out if these routines are called with an Ada type.
1443 (read_structure_type, read_array_type, read_subrange_type):
1444 Add call to set_descriptive_type.
1445 (set_die_type): Initialize the gnat-specific data if necessary.
1446 (need_gnat_info, die_descriptive_type, set_descriptive_type):
1447 New functions.
1448 * ada-lang.c (decode_constrained_packed_array_type): Use
1449 decode_constrained_packed_array_type instead of doing a standard
1450 lookup to locate a parallel type.
1451 (find_parallel_type_by_descriptive_type): New function.
1452 (ada_find_parallel_type_with_name): New function.
1453 (ada_find_parallel_type): Reimplement using
1454 ada_find_parallel_type_with_name.
1455 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
1456 to check if type has a cplus stuff.
1457 * linespec.c (total_number_of_methods): Likewise.
1458 * mdebugread.c (new_type): Likewise.
1459
b0f02ee9
JK
14602010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1461
1462 * NEWS: Document the 0b binary number prefix parsing.
1463
b260e109
JK
14642010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1465
1466 * objfiles.c (objfile_relocate1): Change the return type to int.
1467 Describe the new return value. Return non-zero if data changed.
1468 (objfile_relocate): New variable changed. Set it. Call
1469 breakpoint_re_set depending on CHANGED.
1470
b5cfddf5
JK
14712010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1472
1473 Implement binary numbers parsing.
1474 * c-exp.y (parse_number): New case 'b' and 'B'.
1475
e0ae4240
JK
14762010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1477 Tristan Gingold <gingold@adacore.com>
1478
1479 * solib.c (info_sharedlibrary_command): Replace
1480 objfile_has_partial_symbols and objfile_has_full_symbols calls by
1481 objfile_has_symbols.
1482
6e0e5977
JB
14832010-01-10 Joel Brobecker <brobecker@adacore.com>
1484
1485 * NEWS: Document the improvements made to the mips-irix port.
1486
7348c5e1
JB
14872010-01-09 Joel Brobecker <brobecker@adacore.com>
1488
1489 Fix the documentation of valprint.c:value_print.
1490 * valprint.c (value_print): Update the function description to
1491 mention that the syntax of the output follows the current_language,
1492 not necessarily C.
1493
567995e1
JK
14942010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1495
1496 Fix displacement of separate debug info files.
1497 * objfiles.c (objfile_relocate): Rename to ...
1498 (objfile_relocate1): ... here and make it static. Extend the comment.
1499 (objfile_relocate): New function.
1500 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
1501 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
1502 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
1503 allocated using alloca.
1504 * symfile.c (copy_section_addr_info): Remove.
1505 (build_section_addr_info_from_objfile): Make it global. New variables
1506 addr_bit and mask, use them.
1507 * symfile.h (build_section_addr_info_from_objfile): New prototype.
1508 (copy_section_addr_info): Remove.
1509
6d8eadbd
JB
15102010-01-09 Joel Brobecker <brobecker@adacore.com>
1511
1512 Signal unwinder for mips-irix N32.
1513 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
1514 tramp-frame.h.
1515 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
1516 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
1517 (SIGCONTEXT_LO_OFF): New macros.
1518 (mips_irix_n32_tramp_frame_init): New function.
1519 (mips_irix_n32_tramp_frame): New static constant.
1520 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
1521
27087a3d
JB
15222010-01-09 Joel Brobecker <brobecker@adacore.com>
1523
1524 Breakpoint in shared library does not work on mips-irix.
1525 * procfs.c: #include "observer.h".
1526 (procfs_inferior_created): New function, moving here the code
1527 which unsets the syssgi syscall-exit notifications.
1528 (procfs_create_inferior): Remove the code which unsets the syssgi
1529 syscall-exit notifications. It is too early to do this here.
1530 (_initialize_procfs): Attach the procfs_inferior_created observer.
1531
f08877ba
JB
15322010-01-09 Joel Brobecker <brobecker@adacore.com>
1533
1534 Wrong return convention for arrays (mips-irix).
1535 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
1536 128 bits or smaller are returned the same way as structs
1537 and unions of the the same size.
1538
e4b97d48
JB
15392010-01-09 Joel Brobecker <brobecker@adacore.com>
1540
1541 Cannot set the PC on mips-irix.
1542 * irix5-nat.c (fill_gregset): Check regno against the raw PC
1543 register number, no the cooked one.
1544
11377e68
JB
15452010-01-09 Joel Brobecker <brobecker@adacore.com>
1546
1547 Error while loading core file on mips-irix.
1548 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
1549 if debugging from a core file.
1550
b2391021
JB
15512010-01-09 Joel Brobecker <brobecker@adacore.com>
1552
1553 GDB hangs when attaching to process on mips-irix.
1554 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
1555 attaching to a process.
1556
f2ec0ecf
JB
15572010-01-09 Joel Brobecker <brobecker@adacore.com>
1558
1559 Use the correct breakpoint instruction on mips-irix.
1560 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
1561 containing the correct breakpoint instruction to use on mips-irix.
1562 Use it when the osabi is GDB_OSABI_IRIX.
1563
3c95f01c
JB
15642010-01-09 Joel Brobecker <brobecker@adacore.com>
1565
1566 -Wunused warning in procfs.c (mips-irix only).
1567 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
1568 throughout instead of using praddset and prdelset respectively.
1569
4b7703ad
JB
15702010-01-09 Joel Brobecker <brobecker@adacore.com>
1571
1572 GDB crash while stepping into function.
1573 * infrun.c (handle_inferior_event): Refetch the current frame
1574 after handling what.main_action, in case that pointer became
1575 dangling.
1576
12c89474
JB
15772010-01-09 Joel Brobecker <brobecker@adacore.com>
1578
1579 Fix build failure of solaris-hosted cross debuggers.
1580 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
1581
1a3fd262 15822010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
1583
1584 Fix build failure on sparc-solaris.
1585 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
1586
75242ef4
JK
15872010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1588
1589 Move some symfile code into subroutines.
1590 * symfile.h (relative_addr_info_to_section_offsets)
1591 (addr_info_make_relative): New prototypes.
1592 * symfile.c (default_symfile_offsets): Move a part to ...
1593 (relative_addr_info_to_section_offsets): ... this new function.
1594 (default_symfile_offsets): Call it.
1595 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
1596 this part to ...
1597 (addr_info_make_relative): ... this new function.
1598
268a4a75
JK
15992010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1600
1601 Add from_tty to solib_create_inferior_hook.
1602 * infcmd.c (post_create_inferior): Move solib_add after
1603 solib_create_inferior_hook. Pass from_tty to
1604 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
1605 0 from_tty and comment why.
1606 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
1607 * linux-nat.c (linux_child_follow_fork): Likewise.
1608 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
1609 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
1610 from_tty.
1611 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
1612 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1613 * solib-null.c (null_solib_create_inferior_hook): Likewise.
1614 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1615 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
1616 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1617 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
1618 Pass it to svr4_so_ops.solib_create_inferior_hook.
1619 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
1620 from_tty.
1621 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
1622 solib_add.
1623 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
1624 enable_break.
1625 * solib-target.c (solib_target_solib_create_inferior_hook): New
1626 parameter from_tty.
1627 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
1628 it to ops->solib_create_inferior_hook.
1629 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
1630 Move solib_add after solib_create_inferior_hook, call it now with
1631 from_tty as 0. New comment there.
1632 * solib.h (solib_create_inferior_hook): New parameter from_tty.
1633 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
1634 Likewise.
1635
cf00dfa7
VP
16362010-01-08 Vladimir Prus <vladimir@codesourcery.com>
1637
1638 Fix multiexec race.
1639 * infrun.c (handle_inferior_event): Use get_thread_regcache
1640 with events ptid, not get_current_regcache.
1641
f91e5ac3
JB
16422009-01-08 Joel Brobecker <brobecker@adacore.com>
1643
1644 GDB crash with empty executable name (MinGW).
1645 * source.c (openp): Add assert that parameter string is not NULL.
1646 if parameter string is an empty string, then return with a failure
1647 immediately.
1648
92b9ce5b
JB
16492009-01-08 Joel Brobecker <brobecker@adacore.com>
1650
1651 Get rid of support for VAX Floats.
1652 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
1653 (ada_vax_float_print_function): Delete.
1654 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
1655 (ada_vax_float_print_function): Delete.
1656 * ada-typeprint.c (print_vax_floating_point_type): Delete.
1657 (ada_print_type): Remove support for VAX floats.
1658 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
1659
268a4a75 16602010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
1661
1662 * stabsread.c (read_args): Handle zero arguments.
1663
f0f20949
JB
16642009-01-08 Joel Brobecker <brobecker@adacore.com>
1665
1666 Cannot find in-tree libiconv.a after reconfigure.
1667 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
1668 that we can use, then cache the path to this archive.
1669 * configure: Regenerate.
1670
6b6218c5
SS
16712010-01-07 Stan Shebs <stan@codesourcery.com>
1672
35b1e5cc
SS
1673 Make tracepoint operations go through target vector.
1674 * target.h (enum trace_find_type): New enum.
1675 (struct target_ops): New fields to_trace_init,
1676 to_download_tracepoint, to_download_trace_state_variable,
1677 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
1678 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
1679 to_set_disconnected_tracing.
1680 (target_trace_init): New macro.
1681 (target_download_tracepoint): New macro.
1682 (target_download_trace_state_variable): New macro.
1683 (target_trace_start): New macro.
1684 (target_trace_set_readonly_regions): New macro.
1685 (target_get_trace_status): New macro.
1686 (target_trace_stop): New macro.
1687 (target_trace_find): New macro.
1688 (target_get_trace_state_variable_value): New macro.
1689 (target_set_disconnected_tracing): New macro.
1690 * target.c (update_current_target): Inherit and set defaults for
1691 tracepoint operations.
1692 * tracepoint.c (default_collect): Make globally visible.
1693 (target_is_remote): Remove, along with all calls.
1694 (tvariables_info): Call target_get_trace_state_variable_value.
1695 (remote_set_transparent_ranges): Remove.
1696 (trace_start_command): Call target_trace_init,
1697 target_download_tracepoint, etc.
1698 (download_tracepoint): Remove.
1699 (trace_stop_command): Simplify.
1700 (stop_tracing): Call target_trace_stop.
1701 (get_trace_status): Call target_get_trace_status.
1702 (trace_status_command): Add case for targets that cannot trace.
1703 (finish_tfind_command): Change to take numerical arguments, call
1704 target_trace_find.
1705 (trace_find_command): Update call to finish_tfind_command.
1706 (trace_find_pc_command): Ditto.
1707 (trace_find_tracepoint_command): Ditto.
1708 (trace_find_line_command): Ditto.
1709 (trace_find_range_command): Ditto.
1710 (trace_find_outside_command): Ditto.
1711 (set_disconnected_tracing_value): Call
1712 target_set_disconnected_tracing.
1713 * remote.c: Add protocol encoding bits from tracepoint.c.
1714 (trace_error): Move from tracepoint.c.
1715 (remote_get_noisy_reply): Ditto.
1716 (free_actions_list_cleanup_wrapper): Ditto.
1717 (free_actions_list): Ditto.
1718 (remote_trace_init): New function.
1719 (remote_download_tracepoint): New function.
1720 (remote_download_trace_state_variable): New function.
1721 (remote_trace_set_readonly_regions): New function.
1722 (remote_trace_start): New function.
1723 (remote_get_trace_status): New function.
1724 (remote_trace_stop): New function.
1725 (remote_trace_find): New function.
1726 (remote_download_trace_state_variable): New function.
1727 (remote_set_disconnected_tracing): New function.
1728 (init_remote_ops): Add tracepoint operations.
1729
6b6218c5
SS
1730 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
1731
089b4803
TG
17322010-01-07 Tristan Gingold <gingold@adacore.com>
1733
1734 * symfile.c (build_section_addr_info_from_objfile): New function.
1735 (symbol_file_add_separate): Don't use offsets from objfile but
1736 built an addr info.
1737
d5551862
SS
17382010-01-06 Stan Shebs <stan@codesourcery.com>
1739
1740 Support disconnected tracing.
1741 * infcmd.c (detach_command): Ask whether to stop tracing.
1742 * cli/cli-cmds.c (quit_command): Ditto.
1743 * breakpoint.h (struct breakpoint): New field number_on_target.
1744 * breakpoint.c (create_tracepoint_from_upload): New function.
1745 (get_tracepoint_by_number_on_target): New function.
1746 * remote.c (struct remote): New field disconnected_tracing.
1747 (remote_disconnected_tracing_feature): New function.
1748 (remote_protocol_features): Add DisconnectedTracing.
1749 (struct uploaded_tp): New struct.
1750 (uploaded_tps): New global.
1751 (get_uploaded_tp): New function.
1752 (find_matching_tracepoint): New function.
1753 (remote_get_tracing_state): New function.
1754 (remote_start_remote): Call it.
1755 * tracepoint.c (disconnected_tracing): New global.
1756 (trace_start_command): Initialize number_on_target.
1757 (stop_tracing): New function, split out from...
1758 (trace_stop_command): Call stop_tracing.
1759 (get_trace_status): New function, split out from...
1760 (trace_status_command): Call get_trace_status, add info on
1761 disconnection behavior.
1762 (disconnect_or_stop_tracing): New function.
1763 (finish_tfind_command): Translate from number on target.
1764 (trace_find_tracepoint_command): Translate to number on target.
1765 (send_disconnected_tracing_value): New function.
1766 (set_disconnected_tracing): New function.
1767 (_initialize_tracepoint): Add disconnected-tracing variable.
1768 * NEWS: Mention disconnected tracing.
1769
15d123c9
TG
17702010-01-06 Tristan Gingold <gingold@adacore.com>
1771
1772 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
1773 parameter to main_objfile. Iterate on all separate debug objfiles.
1774 * symfile.h (symbol_file_add_separate)
1775 (find_separate_debug_file_by_debuglink): Remove parameter names.
1776 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
1777 (reread_symbols): Use free_objfile_separate_debug.
1778 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
1779 Adjust comment.
1780 (objfile_separate_debug_iterate, add_separate_debug_objfile)
1781 (free_objfile_separate_debug): New prototypes.
1782 * objfiles.c (objfile_separate_debug_iterate): New function.
1783 (add_separate_debug_objfile, free_objfile_separate_debug): New
1784 functions.
1785 (free_objfile): Use free_objfile_separate_debug. Adjust for
1786 multiple separate debug objfile.
1787 (objfile_has_symbols): Adjust comment. Iterate on all separate
1788 debug objfiles.
1789 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
1790 debug objfile.
1791 (lookup_minimal_symbol_text): Ditto.
1792 (lookup_minimal_symbol_by_pc_name): Ditto.
1793 (lookup_minimal_symbol_solib_trampoline): Ditto.
1794 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
1795 debug objfiles.
1796
7a697b8d
SS
17972010-01-05 Stan Shebs <stan@codesourcery.com>
1798
1799 Add fast tracepoints.
1800 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
1801 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
1802 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
1803 * breakpoint.c (tracepoint_type): New function.
1804 (ALL_TRACEPOINTS): Use it.
1805 (should_be_inserted): Ditto.
1806 (bpstat_check_location): Ditto.
1807 (print_one_breakpoint_location): Ditto.
1808 (user_settable_breakpoint): Ditto.
1809 (set_breakpoint_location_function): Ditto.
1810 (disable_breakpoints_in_shlibs): Ditto.
1811 (delete_trace_command): Ditto.
1812 (print_it_typical): Add bp_fast_tracepoint case.
1813 (bpstat_what): Ditto.
1814 (print_one_breakpoint_location): Ditto.
1815 (allocate_bp_location): Ditto.
1816 (mention): Ditto.
1817 (breakpoint_re_set_one): Ditto.
1818 (disable_command): Ditto.
1819 (enable_command): Ditto.
1820 (check_fast_tracepoint_sals): New function.
1821 (break_command_really): Call it.
1822 (ftrace_command): New function.
1823 (_initialize_breakpoint): Add ftrace command.
1824 * gdbarch.sh (fast_tracepoint_valid_at): New.
1825 * gdbarch.h, gdbarch.c: Regenerate.
1826 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
1827 (i386_gdbarch_init): Use it.
1828 * remote.c (struct remote_state): New field fast_tracepoints.
1829 (PACKET_FastTracepoints): New packet config type.
1830 (remote_fast_tracepoint_feature): New function.
1831 (remote_protocol_features): Add FastTracepoints.
1832 (remote_supports_fast_tracepoints): New function.
1833 (_initialize_remote): Add FastTracepoints.
1834 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
1835 * NEWS: Mention fast tracepoints.
1836
737a160e
JB
18372010-01-06 Joel Brobecker <brobecker@adacore.com>
1838
1839 * gdb-gdb.py: New file.
1840
ce6cca6d
MS
18412010-01-05 Michael Snyder <msnyder@vmware.com>
1842
1843 * infrun.c (handle_inferior_event): Fix typo in comment.
1844
0d15807d
JK
18452010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1846
1847 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
1848
7803799a
UW
18492010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1850
1851 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
1852 and s390x-linux64.
1853 (s390-linux32-expedite): Define.
1854 (s390-linux64-expedite): Define.
1855 (s390x-linux64-expedite): Define.
1856 * features/s390-acr.xml: New file.
1857 * features/s390-fpr.xml: New file.
1858 * features/s390-core32.xml: New file.
1859 * features/s390-core64.xml: New file.
1860 * features/s390x-core64.xml: New file.
1861 * features/s390-linux32.xml: New file.
1862 * features/s390-linux64.xml: New file.
1863 * features/s390x-linux64.xml: New file.
1864 * features/s390-linux32.c: New generated file.
1865 * features/s390-linux64.c: New generated file.
1866 * features/s390x-linux64.c: New generated file.
1867
1868 * regformats/s390-linux32.dat: New generated file.
1869 * regformats/s390-linux64.dat: New generated file.
1870 * regformats/s390x-linux64.dat: New generated file.
1871 * regformats/reg-s390.dat: Remove.
1872 * regformats/reg-s390x.dat: Remove.
1873
1874 * s390-nat.c: Include "auxv.h" and <elf.h>.
1875 (HWCAP_S390_HIGH_GPRS): Define if undefined.
1876 (s390_target_wordsize): New function.
1877 (s390_auxv_parse): Likewise.
1878 (s390_get_hwcap): Likewise.
1879 (s390_read_description): Likewise.
1880 (_initialize_s390_nat): Install s390_auxv_parse and
1881 s390_read_description.
1882
1883 * s390-tdep.c: Include "features/s390-linux32.c",
1884 "features/s390-linux64.c", and "features/s390x-linux64.c".
1885 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
1886 (s390_register_call_saved): New function.
1887 (s390_register_name): Remove.
1888 (s390_register_type): Remove.
1889 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
1890 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
1891 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
1892 (s390_pseudo_register_name): New function.
1893 (s390_pseudo_register_type): New function.
1894 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
1895 Handle full GPR pesudos and varying pseudo register numbers.
1896 (s390_pseudo_register_write): Likewise
1897 (s390x_pseudo_register_read): Remove.
1898 (s390x_pseudo_register_write): Likewise.
1899 (s390_register_group): Remove.
1900 (s390_pseudo_register_group): New function.
1901 (s390_regmap_gregset): Add GPR upper halves.
1902 (s390x_regmap_gregset): Likewise.
1903 (s390_regmap_fpregset): Likewise.
1904 (s390_regmap_upper): New global variable.
1905 (s390_upper_regset): New global variable.
1906 (s390_upper_regset_sections): New global variable.
1907 (s390_regset_from_core_section): Handle GPR upper halves.
1908 (s390_core_read_description): New function.
1909 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
1910 register information. Handle varying pseudo register numbers.
1911 (s390_backchain_frame_unwind_cache): Likewise.
1912 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
1913 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
1914 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
1915 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
1916 Handle varying pseudo register numbers.
1917 (s390_unwind_pc): Handle varying pseudo register numbers.
1918 (s390_dwarf2_prev_register): New function.
1919 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
1920 register information. Handle varying pseudo register numbers.
1921 Install s390_dwarf2_prev_register to unwind full GPRs.
1922 (s390_gdbarch_init): Handle target descriptions. Assign varying
1923 pseudo register numbers. Install s390_adjust_frame_regnum.
1924 (_initialize_s390_tdep): Initialize target descriptions.
1925
1926 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
1927 (S390_NUM_REGS): Redefine to include upper half registers.
1928 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
1929 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
1930 (tdesc_s390_linux32): Add declaration.
1931 (tdesc_s390_linux64): Likewise.
1932 (tdesc_s390x_linux64): Likewise.
1933
1b1818e4
UW
19342010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1935
1936 * regset.h (struct core_regset_section): Add HUMAN_NAME.
1937 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
1938 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
1939 (ppc_linux_vmx_regset_sections): Likewise.
1940 (ppc_linux_fp_regset_sections): Likewise.
1941
1942 * corelow.c (get_core_register_section): Constify arguments.
1943 (get_core_registers): Use gdbarch_core_regset_sections instead
1944 of hard-coded platform-specific register section names.
1945
dcbf108f
UW
19462010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1947
1948 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 1949 a register, assume the least-significant part is used.
dcbf108f
UW
1950 (write_pieced_value): Likewise.
1951
704e9165
UW
19522010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1953
1954 * printcmd.c: Include "arch-utils.h".
1955 (do_one_display): Re-parse expression if current architecture changed.
1956
c54eabfa
JK
19572010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1958 Joel Brobecker <brobecker@adacore.com>
1959
1960 * gdbtypes.c (check_typedef): New comment on type length.
1961 * value.c (allocate_value_lazy): Remove the unused atype variable. New
1962 comment on type length.
1963 (value_primitive_field): Keep the original TYPE value, new comment.
1964
50cb2941
JK
19652010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1966
1967 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
1968 p_start. Change != comparisons to > and < comparisons.
1969
be66db07
JK
19702010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1971
1972 * cli/cli-script.c (process_next_line): Check P2 overrun.
1973
abd775ce
JB
19742009-01-01 Joel Brobecker <brobecker@adacore.com>
1975
1976 Update the copyright hearder to add year 2010 for most GDB files.
1977
6479260d
JB
19782009-01-01 Joel Brobecker <brobecker@adacore.com>
1979
1980 Fix build failure in inf-ptrace.c.
1981 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
1982
4a70f654
JB
19832010-01-01 Joel Brobecker <brobecker@adacore.com>
1984
1985 * top.c (print_gdb_version): Update copyright year.
1986
b9ee2233
JB
19872010-01-01 Joel Brobecker <brobecker@adacore.com>
1988
1989 Fix break *FUN'address thread NUM.
1990 * ada-lex.l (task): Expand rule to also match the thread keyword.
1991
70575d34
JB
19922010-01-01 Joel Brobecker <brobecker@adacore.com>
1993
1994 Fix break *FUN'address task NUM.
1995 * ada-lex.l (task): New rule.
1996 * ada-lang.c (valid_task_id): Make sure the Ada task list has
1997 been built before using it.
1998
e1e4d4a4 1999For older changes see ChangeLog-2009.
c906108c
SS
2000\f
2001Local Variables:
2002mode: change-log
2003left-margin: 8
2004fill-column: 74
2005version-control: never
57da7796 2006coding: utf-8
c906108c 2007End:
This page took 1.192724 seconds and 4 git commands to generate.